Your techniques for MaxGUI

BlitzMax Forums/BlitzMax GUI Programming/Your techniques for MaxGUI

Ironically, I'm now using a similar procedure, but in the opposite manner.

When one of my custom type emits its own custom events, I use this technique to prevent the emitting type from intercepting/reading its own events. I suppose this will save a few CPU cycles, as the emitting type's "OnEvent" manager has around 50 select-case conditionals. When it emits a custom event, there is no need for it to 'check' the emitted event, as the emission is always intended for another object type. Thus, the context-checking procedure above prevents the wasted conditional checks.