Autor Beitrag
Stread
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 188

Win 7
Delphi XE
BeitragVerfasst: So 04.01.09 20:19 
Ich habe in meinem Formular 9 RadioButtons. Man soll von den ersten 7 nur einen auswählen können und von den anderen 2 auch nur einen. Wie muss/kann man nun das Parent setzen dass man von den beiden nur jeweils einen anklicken kann?
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 04.01.09 20:24 
Du kannst bspw. die zusammengehörigen RadioButtons auf jeweils ein Panel legen. Dessen Rand kannst du ja ausblenden, wenn du möchtest.
Stread Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 188

Win 7
Delphi XE
BeitragVerfasst: So 04.01.09 20:53 
Wie kann ich das ausblenden dass das wie große graue Fläche aussieht?
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: So 04.01.09 20:55 
Verwende lieber einen RadioGroup. Oder besser gesagt, zwei davon. Im Objektinspektor kannst du die einzelnen Zeilen (RadioButtons) hinzufügen, und der Parent wird auch richtig gesetzt.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 04.01.09 20:57 
user profile iconStread hat folgendes geschrieben Zum zitierten Posting springen:
Wie kann ich das ausblenden dass das wie große graue Fläche aussieht?
Color setzen und BevelOuter auf bvNone, dann sieht man das Panel nicht. ;-)

Eine RadioGroup wäre natürlich eine gute Idee, aber die sieht man natürlich erst recht...
Stread Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 188

Win 7
Delphi XE
BeitragVerfasst: So 04.01.09 21:01 
Ich habe jetzt 2 Panels gesetzt aber die RadioButtons sind immer noch voneinander abhängig. Habe ich was übersehen?
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 04.01.09 21:08 
Dann liegen diese nicht auf den Panels. Schau mal links oben in die Struktur, diese müssen in den Panels liegen, nicht parallel dazu. Dass sie visuell an der Stelle der Panels liegen reicht nicht.

In der Struktur links oben kannst du die RadioButtons in die Panels ziehen.
Stread Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 188

Win 7
Delphi XE
BeitragVerfasst: So 04.01.09 21:14 
Danke. Das war es.