Autor Beitrag
theoneandonly
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28

Win 98, Suse Linux 9.2

BeitragVerfasst: Do 01.06.06 19:27 
HI!

Ich hoffe ich schreib das hier in den richtigen Bereich;)
Ich hab ein Programm, das unter anderem die Klicks auf verschiedene Buttons zählt.
Nun möchte ich einen Statistikbutton nutzen, der in einem extra Fenster (am besten ein Frame, oder?) die Anzahl der Klicks pro Button in bestimmten Labels ausgibt.

Frage 1: Ich nehm da doch ein Frame, oder?

Frage 2: Wie mach ich das Frame sichtbar?

Frage 3: Wie greif ich aus dem Frame auf die Variablen aus dem Formular zu, um diese anzuzeigen?

MfG und Danke!
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Do 01.06.06 23:52 
user profile icontheoneandonly hat folgendes geschrieben:
...in einem extra Fenster (am besten ein Frame, oder?)

Ein Fenster ist ein Formular.
Ein Frame ist ein Formular in einem Formular.
D.h ein Frame ist wie ein Fenster, nur ist es in einem anderen Fenster eingebettet.
Verstanden? :D
Jetzt musst du selber wissen was besser geignet ist.
theoneandonly Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28

Win 98, Suse Linux 9.2

BeitragVerfasst: Fr 02.06.06 20:16 
So, das war mal ne gute Erklärung. Wenn unsere Lehrer mal so erklären würden, wären wir Platz 1 bei Pisa ;)

Ich hab mal so ein bißchen rumgespielt. Es Funktioniert soweit ich weiß, nur dass ich nicht weiß wie ich es schaffe, dass das Frame beim Klick auf nen bestimmten Button sichtbar wird. (Delphi-Neuling, wie man vielleicht merkt ;) )
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Fr 02.06.06 21:26 
In deiner Komponentenleiste hast du eine Komponente namens Frames.
Die ziehst du auf dein Formular.

Wenn du doch ein Formular (ein neues Fenster) meintest
dann machst du das mit DeinFormular.Show; sichtbar bzw. mit DeinFormular.Hide; unsichtbar.
theoneandonly Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28

Win 98, Suse Linux 9.2

BeitragVerfasst: So 04.06.06 12:13 
Ja, danke!
Ich hab jetz ein neues Formular, dass eben angezeigt und versteckt wird.
Danke, jetzt funktionierts!