Autor Beitrag
Dodekaeder
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

WinXP,Win95
Delphi 5
BeitragVerfasst: Di 21.03.06 16:47 
Hallo ich hab da mal ein kleines Problem mit meinem Programm:
Also ich hab eine Radiogroup mit 6 radiobuttons und wenn man auf irgendeinen radiobutton klickt, soll daneben ein Bild erscheinen, aber bei mir funktioniert das nicht, was habe ich falsch gemacht? :(

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.RadioGroup2Click(Sender: TObject);
begin
if RadioGroup1.Itemindex=0 then
image12.visible:=true; 
end;

Das ist jetzt nur ein Beispiel für eins von den 6 Bilder.
aber jeden falls erscheint das Bild nicht, sondern bleibt unsichtbar... :(
Im moment sind die Bilder schon auf dem formular nur visible:=false, daher dauert alles auch etwas lange... gibts dafür nicht noch ne bessere Methode? :?:
Ferrari
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 30

Win XP
Delphi 6 Personal
BeitragVerfasst: Di 21.03.06 17:06 
Vielleicht liegt es dadran, dass du dich vertippt hast.
Müsste es in der dritten Zeile statt RadioGroup1.Itemindex nicht RadioGroup2.Itemindex heißen?
Dodekaeder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

WinXP,Win95
Delphi 5
BeitragVerfasst: Di 21.03.06 17:11 
ha stimmt...
naja der Teufel liegt im Detail^^


thx a lot! :D