Autor Beitrag
ninibini15
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22

Win XP
Delphi 4
BeitragVerfasst: Do 17.11.05 14:53 
ich hab eine radiogroup eingebaut mit den 5 items fach1-5. wie kann ich jetzt auf diese radiobutton zugreifen? also wie normal radiobutton1.checked, das geht doch mit der group nicht oder? ich dachte es geht mit radiogroup.items.1.checked oder so, aber das geht nicht... mit der delphi hilfe bin ich nicht weiter gekommen...
ihr könnt mir doch bestimmt sagen wie das geht oder?
LG nina
Tilman
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1405
Erhaltene Danke: 51

Win 7, Android
Turbo Delphi, Eclipse
BeitragVerfasst: Do 17.11.05 14:57 
Am einfachste mit ItemIndex, das weist du ja bestimmt.

Um auf die einzelnen Checkboxen zuzugreifen must du statt Items die Eigenschaft Buttons benutzen.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 17.11.05 14:59 
den Index des gecheckten Items in der Radiogroup erhält man mit RadioGroup1.ItemIndex

_________________
We are, we were and will not be.
ninibini15 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22

Win XP
Delphi 4
BeitragVerfasst: Do 17.11.05 15:07 
also ich hatte ja erst 5 einzelne radio button, da kann man ja dann xyz.checked benutzen, aber ich fands besser die alle in einer radiogroup zusammenzufassen. also mit welchem befehl kann ich denn dann zb in einer if anweisung unterscheiden ob einer angegklickt ist? also zb das 3. item? oder meint ihr jetzt das das nicht geht?
Tilman
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1405
Erhaltene Danke: 51

Win 7, Android
Turbo Delphi, Eclipse
BeitragVerfasst: Do 17.11.05 15:40 
Doch das geht:

if radiogroup1.itemindex = 2 then

oder:

if radiogroup1.buttons[2].checked then
ninibini15 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22

Win XP
Delphi 4
BeitragVerfasst: Do 17.11.05 15:46 
alles klar, problem gelöst!
dankee tilman! :)