Extending a MaxGUI control

BlitzMax Forums/BlitzMax Programming/Extending a MaxGUI control

Perturbatio(Posted 2005) [#1]
has anyone done this yet? I would like to give it a go but I don't have a clue where to start.

For instance, if I wanted to create a new type of textarea, would I derive it from an existing textarea or do I have to go back to the based control?

In delphi, you would simply extend the class that most closely represents your new class and override the required methods.

How would you override the Paint() method? (or whatever the BMax equivalent is).


skidracer(Posted 2005) [#2]
The following illustrates extending a TProxyGadget which allows you to override any TGadget method while maintaining platform neutrality (you don't care if you are extending a TWin32Gadget or a TFLTKGadget).


Hmm, EventGadgetSource() should be the proxy, so a little more work required here sorry...