Autor Beitrag
Tabakbrummel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124

win 7
Turbo Delphi, VS 20010 Express
BeitragVerfasst: Sa 19.11.05 13:13 
Hallo alle

Ich habe 2 Formen und je 2 RadioButton auf einer Form.
Mein Problem ist wenn, ich zwischen den beiden Formen wechsle muß ich 2 mal auf den RadioButton klicken um wieder zur anderen Form zugelangen? Wie kann man es abändern?

MfG
Tabakbrummel
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 19.11.05 15:07 
Moin!

Kannst du das mal etwas genauer/anders erklären? :gruebel: Kannst du dabei nicht auch gleich sagen, wie es denn laufen sollte, und nicht, wie es nicht läuft?

cu
Narses
Tabakbrummel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124

win 7
Turbo Delphi, VS 20010 Express
BeitragVerfasst: Sa 19.11.05 15:21 
Hallo Narses

Ich meinte es so :
Auf der Form1 ist RadioButton1 enabled und RadioButton2 soll durch ein klick zur Form2 wechseln. Auf der Form2 soll RadioButton1 mit ein klick zur Form1 wechseln und RadioButten2 ist enabled. Denn die beiden Formen sind genauso groß und haben den gleichen inhalt bis auf die DBGrids.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 19.11.05 15:23 
Moin!

Wie wäre es denn dann damit, die beiden DBGrids auf´s gleiche Form zu packen und nur .Visible umzuschalten? :wink:

cu
Narses
Tabakbrummel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124

win 7
Turbo Delphi, VS 20010 Express
BeitragVerfasst: Sa 19.11.05 15:25 
Hallo Narses

Naja ich auf beide Form noch jede menge andere Komponenten.

MfG
Tabakbrummel
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 19.11.05 15:28 
Moin!

Hä? Wenn du sie eh brauchst und beide Forms aktiv sind, warum dann nicht direkt auf einer Form benutzen? Wenn - wie du sagst - der einzige Unterschied das DBGrid ist (und nicht noch (sehr viele) weitere VCLs), dann macht es IMHO am meisten Sinn, das auch auf einem Form zu realisieren.

cu
Narses
Tabakbrummel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124

win 7
Turbo Delphi, VS 20010 Express
BeitragVerfasst: Sa 19.11.05 15:33 
Hi Narses

Es sind genau 38 Komponente das ist es ja, denn die Idee mit den Visible hatte ich auch schon gehabt.

MfG
Tabakbrummel
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 19.11.05 15:40 
Moin!

Ähm... :gruebel: watt denn nun, sind die Forms nun identisch, bis auf die DBGrids, so dass es sich bei den Radiobuttons quasi nur um einen Umschalter für diese handelt, oder sind die Form unterschiedlich... ?

cu
Narses
Tabakbrummel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124

win 7
Turbo Delphi, VS 20010 Express
BeitragVerfasst: Sa 19.11.05 15:43 
Hi Narses

Die beiden Formen sind identisch bis auf die DBGrids.

MfG
Tabakbrummel
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 19.11.05 15:45 
Moin!

Endlich mal eine klare Aussage. :wink:

In diesem Fall rate ich zu dem .Visible-Ansatz und alles auf einer Form.

cu
Narses
Tabakbrummel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124

win 7
Turbo Delphi, VS 20010 Express
BeitragVerfasst: Sa 19.11.05 15:52 
Hi Narses

Erst mal danke für deine Antworten, dann werde ich es mit den .Visible so machen.

MfG
Tabakbrummel