MaxGUI - Object Oriented Event Response (Hooks?)

BlitzMax Forums/BlitzMax Programming/MaxGUI - Object Oriented Event Response (Hooks?)

taxlerendiosk(Posted 2005) [#1]
I'm trying to get to grips with using MaxGUI. I want to separate out the event response code into methods in the relevant types (for each window). I understand this has something to do with Hooks, but I'm going around in circles in the docs not really getting anywhere in understanding this. Has anyone achieved a good example of doing this yet?


taxlerendiosk(Posted 2005) [#2]
Finally got it. I don't think it's mentioned in the docs anywhere but, in order to hook more than one function up to the same thing, you need to return the "data" parameter from the function you pass to AddHook (that's what the :Object return type is for).