Quote:
Originally Posted by Xenakios
Well, the example code was confusing because it didn't do anything with the action toggle state since the toggle state was determined from the window visible property.
The hookcommandproc could toggle the state for the toggleable actions but it would need to take into account that the action callback might not want to allow changing the state immediately etc, so the responsibility of keeping track of the toggle state was left to the action callback functions. Many ways to do these things...
|
I was confused for it was too much information for me at once and my first impressions on the code and concept were totally wrong. I can implement it myself now, since I understand better (better only, not well yet) what happens when you register the action and run it.