Autor Beitrag
lia04
Hält's aus hier
Beiträge: 7



BeitragVerfasst: So 05.09.04 16:29 
Ist bestimmt ne ziehmlich einfache Frage, aber ich bin ratlos:

Ich möchte in einer selbst erstellten Prozedur festlegen, dass andere buttons ausgeblendet werden.
Aber ich bekomme nur Fehlermeldungen.
bin für jede hilfe dankbar

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure ausblenden;
begin
Tform.button1.visible:=false;
Tform.button2.visible:=false;
Tform.button3.visible:=false;
Tform.button4.enable:=true;
end;
Henry
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 619

WinXP Prof. SP3
D6 Prof.
BeitragVerfasst: So 05.09.04 16:38 
Hallo,

probier mal z.B.
ausblenden Delphi-Quelltext
1:
Form1.Button1.visible:=false;					

_________________
mfg Henry
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: So 05.09.04 16:38 
Zitat:
Tform
wie wär's wenn du den Name der Besitzform angibst und nicht die Klasse?

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
lia04 Threadstarter
Hält's aus hier
Beiträge: 7



BeitragVerfasst: Mo 06.09.04 14:56 
Ach. man kann sich auch doof anstellen.
:oops: :oops: :oops:

Danke, ihr habt mir echt weitergeholfen.
:D
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Mo 06.09.04 16:47 
GSE hat folgendes geschrieben:
wie wär's wenn du den Name der Besitzform angibst und nicht die Klasse?
Nur der Vollständigkeit halber:
Man gibt nicht das Name-Property der Form (oder Instanz, egal ob's ein Button iss oder sonstwas) an, sondern die Variable, die den Zeiger auf das Objekt speichert. Es ist Möglich, Name auf "Form43071" zu setzen und das Objekt heißt "MainForm". Auf's Objekt zugreifen tut man dann mit "MainForm.XXX" und nicht mit "Form43071.XXX".

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mo 06.09.04 17:04 
im allgemeinen sind die aber eh immer gleich, und ich wollte nicht überfordern :wink:

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)