Page 1 of 1
Enable expandability of the gadget library
Posted: Fri May 30, 2025 12:54 pm
by Axolotl
I know that the main goal of Purebasic is to be OS independent. But why shouldn't you be able to extend the library with your own created gadgets, and that's important, with the same look and feel (from a programmer's point of view).
I'm thinking of the following gadgets:
+ RichEditGadget()
+ TreeViewGadget()
+ GridGadget()
+ tbc. (maybe many more)
I know that there are implementations for all of them. Unfortunately, they all have a different interface.
BTW: I am inspired by Fred's interview, where he said that Purebasic will (only) develop further through suggestions from the user community.
Re: Enable expandability of the gadget library
Posted: Fri May 30, 2025 1:16 pm
by Quin
I fully agree with this feature request, but EditorGadget() is already a
rich edit gadget and we have TreeGadget

Re: Enable expandability of the gadget library
Posted: Fri May 30, 2025 3:01 pm
by Axolotl
Thanks for your support,
Yes and No. The existing gadgets could be improved (at least once on windows).
E.g. EditorGadget -> Tables
TreeView is maybe the wrong Name I should have used TreeListGadget (Combination of Tree and List...)
Re: Enable expandability of the gadget library
Posted: Fri May 30, 2025 3:38 pm
by jacdelad
EditorGadget -> Tablet? Do you have the slightest idea how gadgets on Windows work? You should read in the Windows API documentation before demanding such things. It would be handcrafted, Fred would need ages to create that and with every change/improvement people would complain.
Since you can build your own gadgets on a canvas, I say no. The standard gadgets are standard controls and should stay like that.
Re: Enable expandability of the gadget library
Posted: Fri May 30, 2025 4:34 pm
by Axolotl
Yes, I know how windows work.
To be honest, I have already done this with the help of API functions such as “CreateWindowEx_()”. Unfortunately not fully integrated.
CanvasGadget -> I was expecting an answer like this. Great gadget, but INHO not the solution for everything.
And I am asking about the possibility of expanding the library, not the expansion.
Long story short, I accept your opinion.
Re: Enable expandability of the gadget library
Posted: Fri May 30, 2025 5:22 pm
by mk-soft
To create your own gadgets, see SDK by Purebasic. But must be created under 'C'.
Re: Enable expandability of the gadget library
Posted: Fri May 30, 2025 11:47 pm
by jacdelad
What do you mean by "not fully integrated"? PB already offers easy access to countless API calls...the rest can be easily integrated by yourself (e.g. via prototype).
I just meant that PB mostly calls these APIs, which is great for compatibility, but bad for moderness. All these fancy gadgets and designs that cone with other languages are either heavily modified or fully custom designed, which is both legit, but a lot of work. You can find a lot of custom gadgets here in the forum. They are great pieces of a lot of work.
Re: Enable expandability of the gadget library
Posted: Sat May 31, 2025 2:32 am
by BarryG
mk-soft wrote: Fri May 30, 2025 5:22 pmTo create your own gadgets, see SDK by Purebasic. But must be created under 'C'.
But isn't the CanvasGadget meant for that? Which is why it supports so many events for keyboard and mouse.
Re: Enable expandability of the gadget library
Posted: Sat May 31, 2025 11:23 am
by mk-soft
The CanvasGadget is a good method to create your own controls for all OS.
I mean controls like the EditorGadget with the standard functions of Purebasic.
There are the necessary C header files in the SDK to create them.