Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi speedButton GroupIndex problem ? (https://www.delphipraxis.net/128209-speedbutton-groupindex-problem.html)

thomas2009 26. Jan 2009 10:54


speedButton GroupIndex problem ?
 
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo,

ich habe 3 Speedbuttons
alle sind in einer Group
Ich möchte wenn ich auf das SpeedButton1 anklicke wird das Button Down aber wenn ich
auf das SpeedButton noch einmal anklicke, dann soll UP (ohne auf das SpeedButton "OFF" drücken zu müssen")

siehe Anhang

himitsu 26. Jan 2009 10:58

Re: speedButton GroupIndex problem ?
 
Setz mal AllowAllUp der SpeedButtons auf True

[edit]
ach ja, wenn [OFF] auch noch "down" werden soll, wenn sonst nix "down" ist, dann
zusätzlich einfach noch allen SpeedButtons diese OnClick-Prozedur zuweisen

Delphi-Quellcode:
// 3 Buttons - und der 1. ist immer gedrückt, wenn sonst nix gedrückt ist
Procedure TForm1.SpeedButton1to3Click(Sender: TObject);
  Begin
    If not SpeedButton2.Down and not SpeedButton3.Down Then
      SpeedButton1.Down := True;
  End;

thomas2009 26. Jan 2009 11:41

Re: speedButton GroupIndex problem ?
 
Es hat doch geklappt mit AllowAllUp. Vielen Dank


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:26 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz