Autor Beitrag
toxicmaster
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 94



BeitragVerfasst: Fr 19.11.04 16:17 
hi, bin nen neuling in delphi.

also ich habe 3 radiobuttons und ein editfeld.
ich will bei einem klick auf den ersten radiobutton, dass in dem editfeld eine formel angezeigt wird.
bei dem zweiten soll eine andere formel angezeigt werden und beim dritten auch.
das ganze soll nen rechner für das ohmsche gesetzt werden.
hb die rechen sachen schon fertig, aber das mit den formeln wäre noch ganz gut.

danke schon mal im vorraus für die natworten.

mfg toxicmaster
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: Fr 19.11.04 16:37 
Hi,

im OnClick der RadioButtons einfach den EditText neusetzen

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)
shrubman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47



BeitragVerfasst: Fr 19.11.04 16:38 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
if 
radiobuttonblabla.checked
then 
editfeld.text:=formel


oder was willst du ich versteh dich nicht richtig..
IngoD7
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 629


D7
BeitragVerfasst: Fr 19.11.04 16:39 
Benutze ein TRadioGroup und dessen Ereignis OnClick (siehe Delphi-Hilfe).
In der Behandlungsroutine des Ereignisses kannst du dann mit der Eigenschaft ItemIndex (siehe Delphi-Hilfe) sehen, welcher Knopf gedrückt ist, und dein Edit-Feld entsprechend füllen.
toxicmaster Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 94



BeitragVerfasst: Fr 19.11.04 20:33 
sorry hat mir leider nicht geholfen (außer das mit dem onclick aber das bekomme ich nicht hin).
also ich glaub ich habe mich schlecht ausgedrück.
also ich habe 3 radiobuttons und ein editfeld.
ich will dass bei einem klick auf einen radiobutton ein text in dem editfeld auftaucht.
wenn ich aber auf einen anderen radiobutton drücke soll ein anderer text kommen.
also es soll einfach nur ein text im edit auftauchen wenn ich auf den button klicke.

das mit dem onclick habe ich versucht aber ich weiß nicht wo ich den wert ändern soll.
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: Fr 19.11.04 20:35 
einfach einen RadioButton Doppelt anklicken und dort dann[DeinEdit].Text := '[DeinText]'; reinschreiben

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)
toxicmaster Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 94



BeitragVerfasst: Fr 19.11.04 20:43 
juhu danke dass wollte ich