Enable and diable bug in local frame
If a GUIAction was assigned only response to local frame. Sometimes it could
This is because if a GUIAction is assigned locally, when a state change event
happened, morpho will compared the GUIAction's final parent frame and state
change event's final parent's final frame. If they are same, the gui action
will be enabled or diabled. But some time the state change event happened
before a frame was assign to its parent, the event's parent is null but
GUIAction is not. This cause the problem.
We can use a Queque or Vector to store the event, then broadcastiit late.
#2 Updated by Jing Tao over 17 years ago
In util package, a interface named StoreStateChangeEvent was created. There
are 3 methods: storingStateChangeEvent, getStoredStateChangeEvent and
ResultPanel, DataViewerContainerPanel and DataViewer classes implement the
interface. So Statechange Event can either broadcast lately by stored in a
vector or broadcast immediately.
Now, local event feature works well.