![]() |
What is xtpButtonAutomatic for? |
Post Reply
|
| Author | |
Shawshank
Senior Member
Joined: 16 October 2005 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Topic: What is xtpButtonAutomatic for?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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |