Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Groupindex question

Status
Not open for further replies.

pierrotsc

Programmer
Nov 25, 2007
358
US
I have a toolbar with some icons linked with the same groupindex so when i press one icon, the one that was pressed got unpressed.
Is there anyway to have all the icons unpressed? to have them reset to their original positions before the first one was ever clicked on?

Thanks.
P
 
I don't have anything here that refers to TToolButtons having a groupindex property. Here what I have just involves adjacent TToolButtons on a TToolBar.

That said, here's how you do what you're wanting with what I have: For each TToolButton set:
1. style to TBSCheck.
2. grouped to true.
3. AllowAllUp to true.

Not sure if that'll help, but at least it will if nothing's changed since Delphi 2006.


It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
 
Thanks..I forgot to mention it was a business skin form toolbar from almdev. So i can add button on this toolbar that has a groupindex. They also have a checked settings.
The only way i found that a way to do it is to write:
ToolbUtton_paint.down := false;
....
For all the buttons in the toolbar.

I was hoping to get a magic command that would reset all the buttons.

Appreciate your input.
P
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top