![]() |
Giving states to buttons |
Post Reply ![]() |
Author | |
citygategis ![]() Newbie ![]() Joined: 19 January 2006 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() Posted: 19 January 2006 at 6:39pm |
I am just starting with Xtreme. How can I create buttons with states. That is checked or unchecked states. My app requires tools, such as zoomin or pan. when one is checked, the others should become unchecked. I saw that this can be done using CommandBars_Update event. However, this seems like a bit of a waste to run many CPU cycles to change state of buttons which are really initiated during an Execute event. In another word, how can I find all occurrences of a button (menu and tool bar), so I can set the check as needed? Any and all help would be greatly appreciated. |
|
![]() |
|
Ky3bkuHa MaTb ![]() Newbie ![]() Joined: 13 March 2006 Location: Russian Federation Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
You need a pointer to button.
Then you may use function GetChekced(), SetChecked(). But function GetChecked() causing crash. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |