Autor Beitrag
sveno
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40



BeitragVerfasst: Mi 17.03.04 15:06 
Hallo!

Hoffe das ist das passende Forum!

Möchte ein Programm erstellen, welches man über ein Main Menü navigiert. Wie krieg ich es hin das wenn ich über das Main Menü in einen anderen Abschnitt des Programms gehen möchte, sich der Inhalt des neuen Abschnitt über den des alten legt, oder muss ich da mit Frames oder gar mit Group Boxen arbeiten?

Moderiert von user profile iconPeter Lustig: Topic verschoben
Moderiert von user profile iconTino: Topic verschoben
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Mi 17.03.04 15:58 
Du kannst in der ordentlichen Variante die Objekte direkt zur Laufzeit erzeugen oder in der schlechteren Variante die Objekte über Visible ein- und ausblenden.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
sveno Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 40



BeitragVerfasst: Mi 17.03.04 15:59 
erstmal danke.

was heisst objekte direkt zur laufzeit erzeugen und wie mach ich das?
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mi 17.03.04 16:39 
Hallo!

Recht einfach ist auch, mit einer PageControl zu arbeiten und bei den einzelnen Seiten TabVisible = Fasle zu setzen. Die sprichst Du dann im Menü einfach über "PageControl.ActivePage := irgendwas" an.

Ich mache das eigentlich oft so.

MfG
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Mi 17.03.04 21:23 
Zur Laufzeit erzeugen machst du folgend:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var
  Edt_Test: TEdit;
begin
  Edt_Test := TEdit.Create(Form1);
  Edt_Test.Parent := Form1;
  //sonstige Eigenschaften Left, Top Werte Width, Height von Hand setzen
end;

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: So 21.03.04 09:47 
du packst dir eine Mainmenu komponente auf das Form und packst deine menu items rein und fertig.

dann kannst du damit machen was du willst... oder was ist dein problem genau ???

_________________
MFG
Michael Springwald, "kann kein englisch...."