Search found 528 matches

by ebs
Mon Mar 18, 2024 4:24 pm
Forum: Coding Questions
Topic: I need native image drawn on a ButtonGadget
Replies: 11
Views: 600

Re: I need native image drawn on a ButtonGadget

I wanted the images stored in the data section and in PNG format, not ICO. You don't have to convert the images to icons, you can do this instead: hIcon1 = CatchImage(#PB_Any, ?ChkImage) hIcon2 = CatchImage(#PB_Any, ?XImage) SendMessage_(GadgetID(0),#BM_SETIMAGE,#IMAGE_BITMAP,ImageID(hIcon1)) SendM...
by ebs
Mon Mar 18, 2024 3:22 pm
Forum: Announcement
Topic: Chordian - An Omnichord Emulator
Replies: 8
Views: 625

Re: Chordian - An Omnichord Emulator

I have absolutely no musical talent whatsoever (ask the guy who tried to teach me to play guitar for 3 years :D ), but your Chordian is a lot of fun, a great time waster, and a pretty amazing example of what a talented person can do in PureBasic. So far, everything seems to work fine on my Core i5 W...
by ebs
Tue Jan 23, 2024 4:39 pm
Forum: Coding Questions
Topic: read excel .xlsx file data ...
Replies: 30
Views: 4454

Re: read excel .xlsx file data ...

Hello HeX0R!

I have an XLSX spreadsheet that causes your code to get stuck in a loop.

Would you be willing to look at this spreadsheet to try to figure out what's going on?
If so, I will send you a PM with a link to download it.

Thank you,
Eric
by ebs
Wed Jan 03, 2024 5:32 pm
Forum: Coding Questions
Topic: TextGadget Transparent Background
Replies: 12
Views: 2614

Re: TextGadget Transparent Background

RASHAD wrote: Wed Jan 03, 2024 5:28 pm BTW
I just discovered that the problem is with PB 6.04 not with Windows :wink:
Tested fine with PB 5.72
That makes sense - I was testing with an older PB version also, so either way works.
by ebs
Wed Jan 03, 2024 4:26 pm
Forum: Coding Questions
Topic: TextGadget Transparent Background
Replies: 12
Views: 2614

Re: TextGadget Transparent Background

I have tried all these examples with Win 11. The TextGadget is never transparent. Has anything changed with Win 11? I need a code to make various text gadgets (and if possible check box gadgets) transparent. That's odd - I'm running Windows 11 Pro and the text gadget is transparent with both #1 and...
by ebs
Thu Dec 28, 2023 4:21 pm
Forum: Coding Questions
Topic: Prefilling a List
Replies: 15
Views: 1381

Re: Prefilling a List

I was not able to get the JSON example to work within a procedure (below). Error report is "A JSON value of type array is expected". Procedure MakeList(List mylist(), set$) CreateJSON(0) ParseJSON(0, set$) ExtractJSONList(JSONValue(0), mylist()) ;error on this line FreeJSON(0) EndProcedur...
by ebs
Tue Oct 10, 2023 2:07 pm
Forum: Coding Questions
Topic: Creating an own control/gadget using Windows API
Replies: 9
Views: 781

Re: Creating an own control/gadget using Windows API

You might want to take a look at ChrisR's "IceButtons Windows library" to give you some ideas: viewtopic.php?p=608752
by ebs
Mon Oct 09, 2023 3:17 pm
Forum: Coding Questions
Topic: [Solved]How to spread menu titles farther apart than the default positions
Replies: 3
Views: 377

Re: How to spread menu titles farther apart than the default positions

Can't you just add a few leading and/or trailing spaces to each menu title? Like this: OpenWindow(0,0,0,1024,768,"Example Menu",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) CreateMenu(0,WindowID(0)) MenuTitle(" Title 1 ") MenuTitle(" Title 2 ") MenuTitle(" Titl...
by ebs
Fri Oct 06, 2023 3:59 pm
Forum: Tricks 'n' Tips
Topic: Ice Button Theme Windows Library (for Dark or Light Theme Button)
Replies: 14
Views: 1761

Re: Ice Button Theme Windows Library (for Dark or Light Theme Button)

Chris,

I'm one of your 'early adopters', i.e., first purchasers of IceDesign.
This is a great addition and lets me add a little more 'bling' to my boring old forms. :D

Keep up the good work!

Regards,
Eric
by ebs
Tue Sep 05, 2023 3:03 pm
Forum: Coding Questions
Topic: How to capture Button RightClick event?
Replies: 15
Views: 3981

Re: How to capture Button RightClick event?

@jacdelad,

Thank you very much!
This is the simplest implementation of this I have seen, and it will come in very handy; actually, it already has :D

Regards,
Eric
by ebs
Wed Jul 19, 2023 7:13 pm
Forum: Tricks 'n' Tips
Topic: Format string with some values like sprintf (C) - Update
Replies: 60
Views: 30403

Re: Format string with some values like sprintf (C) - Update

AZJIO wrote: Wed Jul 19, 2023 4:49 pm

Code: Select all

Define d.d = 123.5e-20
Debug Format("%d", @d)
Returns 0.
I assume that you have to specify the number of decimal places for floating point numbers:

Code: Select all

Define v.d = 123.5e-20
Debug Format("%1.22d", @v)
results in '0.0000000000000000012350'
by ebs
Fri Jun 02, 2023 3:12 pm
Forum: General Discussion
Topic: Betterlook.pbi - Make your PB app UI better-looking (WIP - Windows x64)
Replies: 32
Views: 3381

Re: Betterlook.pbi - Make your PB app UI better-looking (WIP - Windows x64)

Another suggestion: use #PB_Any to generate the IDs for the titlebar minimize/restore and close gadgets, rather than using fixed numbers (595, 596).

This should probably also be done for font IDs, image IDs, etc., so that the fixed numbers don't conflict with other gadgets.
by ebs
Wed May 31, 2023 7:46 pm
Forum: General Discussion
Topic: Betterlook.pbi - Make your PB app UI better-looking (WIP - Windows x64)
Replies: 32
Views: 3381

Re: Betterlook.pbi - Make your PB app UI better-looking (WIP - Windows x64)

@firace, I got your BetterLook source code - thank you!! I started experimenting and noticed that the path to the IncludeFile in the two examples contains an elaborate folder structure. Since I put the PBI file in the same folder, I changed it to: IncludeFile "betterlook.pbi" for convenien...
by ebs
Tue Apr 18, 2023 6:32 pm
Forum: Coding Questions
Topic: Window with Close Button and NO Icon?
Replies: 6
Views: 338

Re: Window with Close Button and NO Icon?

@wombats,

That's EXCELLENT - thank you!
by ebs
Tue Apr 18, 2023 4:21 pm
Forum: Coding Questions
Topic: Window with Close Button and NO Icon?
Replies: 6
Views: 338

Re: Window with Close Button and NO Icon?

Hi Fred,

That's pretty close, especially on Windows 11 where the title bar looks like it's the same size.
The close button is a little different, but I can probably live with that.

Thanks!