Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Toolbox: Prevent Multiple Selection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolbox: Prevent Multiple Selection

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


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Topic: Toolbox: Prevent Multiple Selection
    Posted: 21 February 2005 at 12:45pm

I have a TaskPanel being used as a Toolbox with the 'WhidbeyToolbox' style and 'Explorer' behavior.  This allows me to display multiple groups at one.  The problem is that I only want one item to be selected at a time.  Currently, the only limit is that one item is selected per group.

Is there an easy way to prevent this from happening?  At the moment, my only thought would be to enumerate each item in the toolbox and set the Selected property to false.  Seems like an ugly work-around.

Thanks for any feedback!

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: 22 February 2005 at 2:30am

 

You can store previour selection in some variable and unselect it after new item clicked.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2005 at 12:34pm

This only solves half the problem.  If the user uses the keyboard to change their selection, there is no event for this.   If there's no way for me to know the selection changed, I can't de-select the old item.

Can you please add 'ItemSelected' event to allows us to respond to changes made by the keyboard?

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2005 at 10:32am
In the next release, a new property called TaskPanel.SingleSelection will allow you to specify if only a single item can be selected in the Task Panel.
Back to Top
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2005 at 11:18am

will it be possible to select more than one item in any given group?

or is this possible already and I've missed it???

Thanks

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2005 at 11:19am
It is already possible, Take a look at the ToolBox sample and select "Toggle Buttons"

(Select item on Focus must be un-checked)


Edited by SuperMario
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.203 seconds.