Set own classname on window and gadget

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Axolotl
Enthusiast
Enthusiast
Posts: 435
Joined: Wed Dec 31, 2008 3:36 pm

Set own classname on window and gadget

Post by Axolotl »

Set own classname on OpenWindow() and CanvasGadget() would be a great improvement.

The Classnames used by purebasic are okay in most cases, or do not bother much.
From my point of view, there is at least a difference in windows and canvas.
Here it would be very useful if the classnames could be specified when creating the windows/gadgets.

Examples of the existing Gadget classname combination
PB-Gadget -> Classname
ButtonGadget -> Button
CheckBoxGadget -> Button
StringGadget -> Edit
CanvasGadget -> PureCanvas -> many new gadgets based on this gadget, they could use there own classname
ListIconGadget -> SysListView32
ListViewGadget -> ListBox

On Windows there are classnames like WindowClass_# (I have seen WindowClass_0, WindowClass_1, WindowClass_2)

See also other discussions on the topic:
https://www.purebasic.fr/english/viewtopic.php?t=27960
https://www.purebasic.fr/german/viewtop ... 50#p351650
Mostly running PureBasic <latest stable version and current alpha/beta> (x64) on Windows 11 Home