Print Page | Close Window

Giving states to buttons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=3536
Printed Date: 06 October 2024 at 5:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Giving states to buttons
Posted By: citygategis
Subject: Giving states to buttons
Date 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.




Replies:
Posted By: Ky3bkuHa MaTb
Date Posted: 13 March 2006 at 11:42pm
You need a pointer to button.
Then you may use function GetChekced(), SetChecked().

But function GetChecked() causing crash.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net