Print Page | Close Window

What is xtpButtonAutomatic for?

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=7342
Printed Date: 18 June 2025 at 9:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: What is xtpButtonAutomatic for?
Posted By: Shawshank
Subject: What is xtpButtonAutomatic for?
Date Posted: 09 June 2007 at 2:03am
I have added several xtpControlButton CommandBarControls. I would like for them to at like a group of option buttons on a frame, where, when one is selected it becomes checked. If another of the buttons is selected the previous button becomes unchecked and the newly selected button becomes checked. This happens automatically when using option buttons on a frame. However, it doesn't appear to work that way, at least for me, using the CommandBarButtons which are all children of an xtpControlPopup. Should I expect it to? Or do I have to keep up with which item to check and which to uncheck? I have tried to also create xtpControlCheckBox when creating the CommandBarButtons and setting Style = xtpButtonAutomatic but that doesn't achieve the desired result either.
 
Shawshank



Replies:
Posted By: Oleg
Date Posted: 10 June 2007 at 2:00am

Hi,

Use Execute and Update events.

 
in Execute save last pressed button to IDLast variable.
In Update call Control.Checked = (Control.ID = IDLast)
to check only last pressed button.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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