#TheGate editor coded with #HollywoodMAL
---
Today I've changed the structure of the event handler to avoid SWITCH/CASE statements.
A GUI event creates a message with several fields but what I need to handle them are:
.id (the gadget id)
.attribute (the type of event like 'pressed', 'selected', etc...)
Previously I handled them with something like this:
Switch msg.attribute
Case "Pressed"
Switch msg.id
Case "Load_Button"
handler_func()
๐งต โก๏ธ


