Home
Products
Community
Manuals
Contact
Login or Signup

MaxGui Program Flow

BlitzMax Forums/BlitzMax Programming/MaxGui Program Flow

Shagwana(Posted 4 years ago) #1
I have been tinkering with a way of breaking up large programs up into neat little chucks. Here is what i have come up with so far;

This method uses one master hook, to send events to the correct place depending on the source of the event.



Anyone got a better way of looking after program flow in Blitzmax gui mod?.

Now im just waiting for flameduck to get medievil on my ass now, telling me a better OOP way of doing it! :D


Shagwana(Posted 4 years ago) #2
As i do this, i have a program split into;

[Codelump] extends ..
[hook (sub)] extends ..
[logic] extends ..
[data] extends ..
[ui] (base)

Now as long as the data held in logic, data and ui (user interface) remains global then all codelumps can access what they need :).

All is looking well so far.


Shagwana(Posted 4 years ago) #3
Now after a spot of "RTFM" i have found a command called ...
"SetGadgetTarget" Now this could be usefull!