1

Have any handler or procedure, that call automatic when the click or unclick menu item or button? Similiar SelChangedHandler.

asked Dec 11, 2013 at 14:22

1 Answer 1

1

Click and unclick button is call a toggle button. If a menu it can be checked / unchecked. From the help:

"When the user clicks on a ToggleButton, the button toggles between being checked (pushed in) and being unchecked (not pushed in). MapInfo calls the button's handler each time the user clicks on the button. MapInfo's Show Statistics Window button is a ToggleButton. "

For a menu see the function MenuitemInfoByHandler( handler , attribute )

"MENUITEM_INFO_CHECKED Logical: TRUE if the menu item is checkable and currently checked; also return TRUE if the menu item has alternate menu text (e.g. if the menu item toggles between Show... and Hide...), and the menu item is in its "show" state. Otherwise, return FALSE. "

answered Dec 17, 2013 at 9:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.