Your techniques for MaxGUI

BlitzMax Forums/BlitzMax GUI Programming/Your techniques for MaxGUI

Excellent advice, CS_TBL. I am beginning to view the GUI from a much more 'separated' OOP perspective, which is clearly advantageous.

This piques my interest over events. There is more to them than I am immediately familiar with. For example, I have not yet dealt with this "extra" field of the tevent object. I have only played with System Timer events, which send their own custom messages. From your description, however, it looks like I can create a tevent object from within a method, set its fields to various values, and then emit that event to Blitzmax's event distribution system.

When I place an object in the 'extra' field of the tevent object, what happens? Does the event send a message specifically to that instance/type? If either of these are true, where in the object's code is that message received (i.e. what function/method is called)? Or am I wrong assuming messages can be sent directly to objects?

If you wouldn't mind describing a little more about how to use custom events (or pointing me to a good in-depth tutorial), I'd be very grateful! You've already helped alot.

NAVY