ChangeGadgetClass

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

ChangeGadgetClass

Post by freedimension »

For Coloring a Gadget (i.e. a Window) you need to set a parameter in the Gadgets WindowClass. If I try to set the Background Brush for a specific Gadget (Container Gadget) I change at the same time all other ContainerGadgets too.
It would be nice, to have a command, that allows you to automatically create another WindowClass, so I can seperate specific Gadgets from the others.

Code: Select all

ContainerGadget( ....  ) ; would have PBContainer01 Class
ContainerGadget( ....  ) ; this also
ChangeGadgetClass( )
ContainerGadget( ....  ) ; would have PBContainer02 Class
For Reasons of needed Memory I wouldn't want to create a new Class for every new Gadget.