Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - What is xtpButtonAutomatic for?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

What is xtpButtonAutomatic for?

 Post Reply Post Reply
Author
Message
Shawshank View Drop Down
Senior Member
Senior Member


Joined: 16 October 2005
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shawshank Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.