Cower GUI

Miscellaneous Forums/Blitz Showcase/Cower GUI

Anyone wants to fiddle with the GUI, source so far.

Download

Technical crap

If you want to add gadgets, you do so by extending the CGadget type and you implement the Draw(), Update(), and ToString() (in the case of CButton, returns "Button") methods. Create:CYourGadget() should be a static method that creates the gadget. At the end of Draw you call DrawChildren() and at the end of Update() you call UpdateChidlren(). This is done because any gadget- besides windows, and they could be extended to include this- can be parented to any other gadget.

There are still no 'FreeGadget' or 'Dispose' methods as I'm not quite sure exactly how BlitzMax handles stuff like that- I have no idea if the Delete method does anything or if Release frees the integer handle or all the resources used by an object (not any objects it has references to though).