Autor Beitrag
rob87
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Fr 06.06.08 12:42 
Hallo

ich will in meiner RadioGroup während der Entwicklung mehrere Elemente hinzufügen und irgendwie krieg ich des ned hin.

Ich benutze Delphi 2007 für Win32. In meinem alten Delphi 7 ging des irgendwie. Da konnte man irgendwie die Items eintragen, wie halt anderswo nen SQL-Text, und dann hat der die angezeigt. Aber des geht jetzt irgendwie nimma???
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: Fr 06.06.08 13:57 
Hallo,

du kannst mit RadioGroup1.Items.Add einen Eintrag hinzufügen, und wenn du dir die anderen Methoden von Items anschaust, wirst du ach deren Bedeutung leicht erraten können.

PS: Ändere doch im Titel "RadioGroup vor der Laufzeit einstellen" in ein "während". ;)

Grüße,
Yogu
rob87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Fr 06.06.08 14:00 
user profile iconYogu hat folgendes geschrieben:
Hallo,

du kannst mit RadioGroup1.Items.Add einen Eintrag hinzufügen, und wenn du dir die anderen Methoden von Items anschaust, wirst du ach deren Bedeutung leicht erraten können.

PS: Ändere doch im Titel "RadioGroup vor der Laufzeit einstellen" in ein "während". ;)

Grüße,
Yogu


Nein des will ich ja grad ned. Ich will die Items sehen, wenn ich meine Formulare aufbaue. Also während meiner Entwicklungs-/Programmierphase.

Während der Laufzeit is klar. Mit Items.Add();
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: Fr 06.06.08 14:10 
Oh, sorry. Da hab ich wohl was durcheinander gebracht. :oops:

Eine Eigenschaft Items gibt es bei dir im Objektinspektor nicht, wenn du die Group markiert hast? Das sollte nämlich eigentlich da sein.

Grüße,
Yogu
rob87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Mo 23.06.08 07:19 
user profile iconYogu hat folgendes geschrieben:
Oh, sorry. Da hab ich wohl was durcheinander gebracht. :oops:

Eine Eigenschaft Items gibt es bei dir im Objektinspektor nicht, wenn du die Group markiert hast? Das sollte nämlich eigentlich da sein.

Grüße,
Yogu


Ne, leider ned. Ich hatte des "früher" mal. In meinem Delphi 7. Nun hab ich aber Delphi 2007
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: Mo 23.06.08 11:26 
user profile iconrob87 hat folgendes geschrieben:
Nun hab ich aber Delphi 2007

Tut mir leid, da weiß ich nicht mehr weiter. Ich dachte eigentlich, da wäre wenigstens etwas Abwärtskompatibilität dabei. Aber ich habe leider kein Delphi 2007.
rob87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Mo 23.06.08 12:37 
user profile iconYogu hat folgendes geschrieben:
user profile iconrob87 hat folgendes geschrieben:
Nun hab ich aber Delphi 2007

Tut mir leid, da weiß ich nicht mehr weiter. Ich dachte eigentlich, da wäre wenigstens etwas Abwärtskompatibilität dabei. Aber ich habe leider kein Delphi 2007.


Hmmpff. *g* Dann lass ich es bei "während der Laufzeit erstellen". Merci trotzdem ;-)
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Mo 23.06.08 13:11 
Ich ziehe die Radiobuttons einfach auf die radiogroup-Komponente drauf.
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: Mo 23.06.08 13:24 
user profile iconBoldar hat folgendes geschrieben:
Ich ziehe die Radiobuttons einfach auf die radiogroup-Komponente drauf.

Dann brauchst du keine RadioGroup, dann reicht eine GroupBox. ;)
rob87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 461

Win Me, Win XP Home, Win XP Prof
Delphi 2007 Enterprise
BeitragVerfasst: Mo 23.06.08 13:32 
user profile iconYogu hat folgendes geschrieben:
user profile iconBoldar hat folgendes geschrieben:
Ich ziehe die Radiobuttons einfach auf die radiogroup-Komponente drauf.

Dann brauchst du keine RadioGroup, dann reicht eine GroupBox. ;)


Hmm... Ja, entweder so oder mein Vorschlag. Ich glaub des bleibt sich wurscht. ;-)
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Mo 23.06.08 14:55 
nein, wenn ich die Darauf ziehe, arbeitet es schon korrekt, sodass immer nur ein button checked ist.
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mo 23.06.08 14:58 
user profile iconBoldar hat folgendes geschrieben:
nein, wenn ich die Darauf ziehe, arbeitet es schon korrekt, sodass immer nur ein button checked ist.


Das tuts auch mit ner GroupBox ;)

Hab auch D2007. Wenn ich da eine TRadioGroup anklicke, hab ich im OI eine Eigenschaft "Items" vom Typ TStrings. Wenn ich da nun 3 Zeilen eintrage, und mit OK bestätige, erscheinen 3 RadioButtons in dieser Group.