Autor Beitrag
pk910
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 74

Win VISTA, Win 98, Win XP, Linux
Delphi 5.0
BeitragVerfasst: Do 19.04.07 16:14 
wie kann ich in einem TTabbedNotebook nen neuen
Eintrag erstellen, indem ich mehrere Objekte Platziere

(Memo,Edit,Button)


wie geht des?

die Objecte brauchen ja dann auch eigene namen usw...
Ich hab kA wies geht ^^
pk910 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 74

Win VISTA, Win 98, Win XP, Linux
Delphi 5.0
BeitragVerfasst: Do 19.04.07 19:17 
so...

bin mal n bissl weiter

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
procedure TForm1.Button1Click(Sender: TObject);
var edit2: TEdit;
begin
edit2:=TEdit.Create(Self);

edit2.Show;
edit2.name:='edit2';
edit2.visible:=TRUE;
edit2.Left:=8;
edit2.Top:=8;
edit2.width:=161;
edit2.Height:=25
end;


Aber irgendwie zeigt er des editfeld ned an
Leo1971
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26

Win 98, Win XP
D5 Ent, D2005 Arch, Prof
BeitragVerfasst: Do 19.04.07 20:54 
Willst Du das Edit unbedingt dynamisch erstellen oder reicht es auch zur Entwurfszeit, dann brauchst Du es nur auf den Container ziehen ;). Als Hinweis das TTabbedNoteBook ist veraltet nutz statt dessen lieber das TPageControl!

_________________
Bis die Tage
Leo
Magic J
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 66

WinXP Prof., Vista
Delphi6, Delphi 2009, Java(Eclipse), C++, Basic
BeitragVerfasst: Do 19.04.07 21:01 
Hi

zum Anzeigen fehlt da noch sowas:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TForm1.Button1Click(Sender: TObject);  
var edit2: TEdit;
begin
  edit2:=TEdit.Create(Self);
  edit2.Parent:=TabbedNotebook;
  edit2.Left:=8;
  edit2.Top:=8;
  edit2.width:=161;
  edit2.Height:=25
  edit2.name:='edit2';
  edit2.visible:=TRUE;
end;


Gruß Jonas