View Single Post
Old 03-21-2017, 08:00 PM   #63
ceanganb
Human being with feelings
 
Join Date: May 2009
Location: Brazil
Posts: 323
Default

Quote:
Originally Posted by Xenakios View Post
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.
__________________
Ceanganb
ceanganb is offline   Reply With Quote