Dazzer
December 4th, 2006, 12:57 PM
This is related to a project I'm working.
Its a design application. And so, there'll be several tools to use.
Which would be a better way to proceed to acheive context-sensitive functions?
1) global boolean values
- have boolean values that dictate whether the state is active, and check for that state whenever a mouseevent occurs?
2) single "state" value
- 1 value that mouseevent checks for to determine the state the mouse is in?
3) changing listeners to specific objects that will accept that event?
Thanks in advanced for any replies.
Its a design application. And so, there'll be several tools to use.
Which would be a better way to proceed to acheive context-sensitive functions?
1) global boolean values
- have boolean values that dictate whether the state is active, and check for that state whenever a mouseevent occurs?
2) single "state" value
- 1 value that mouseevent checks for to determine the state the mouse is in?
3) changing listeners to specific objects that will accept that event?
Thanks in advanced for any replies.