Autor Beitrag
toxicmaster
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 94



BeitragVerfasst: Mi 30.03.05 07:56 
hi,
wie kann ich es machen, wenn ich 2 buttons habe und den einen drücke, dass der andere mit betätigt wird?
war das nicht so in der art?
das ist nach delphi falsch ->
ausblenden Delphi-Quelltext
1:
button1 (sender);					



Moderiert von user profile iconChristian S.: Topic aus Sonstiges verschoben am Mi 30.03.2005 um 07:57
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Mi 30.03.05 08:09 
ausblenden Delphi-Quelltext
1:
Button2Click(Button2); {um auf Nummer sicher zu gehen}					

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
demo88
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 160

Ubuntu 6.04, Win XP
Delphi 7
BeitragVerfasst: Mi 30.03.05 09:32 
Oder so:

ausblenden Delphi-Quelltext
1:
Button2.Click;					
Pierre
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 138

Win 98se und XP prof
D5Pers und D7Prof
BeitragVerfasst: Sa 02.04.05 18:59 
Hallo,
oder willst Du, wenn der eine gedrückt wurde, dass der andere nicht mehr drückbar ist?

in der onclick-procedure des Button1 -> Button2.enabled:=false;
bzw.
in der onclick-procedure des Button2 -> Button1.enabled:=false;

Ich hoffe, es hilft.

Gruß Pierre