Autor Beitrag
Sunus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 20



BeitragVerfasst: So 29.03.09 17:42 
Hallo,
wie kann man das NoteBook für ein Panel, auf einer bestimmten Seite zuweisen?
Ich habe rumprobiert und Gegoogelt, fnde aber nichts pasendes.

Ich habe es hingeriegt, dass das Panel zwar das NoteBook als Parent kriegt, aber beim umblättern und wieder zurück sieht man das Panel nicht mehr.

Hier mein derzeitiger Code:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
  with TPanel.Create(Self) do
   begin
    Width:=NoteBook2.Width;
    Height:=NoteBook2.Height;
    Anchors:=[akLeft, akTop, akRight, akBottom];
    BevelInner:=bvLowered;
    BevelOuter:=bvRaised;
    BevelWidth:=2;
    BorderWidth:=1;
    Color:=clred;
    Name:='O_P'+IntToStr(N);
    visible:=true;
    Parent:=NoteBook1; // so wird das Notebook zum Parent, bis man umblättert.
    Left:=0;
    Top:=0;
   end;
Sunus Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 20



BeitragVerfasst: So 29.03.09 18:02 
Ok, hab mal was gefunden ^^
Wer es wissen will:
www.esanu.name/delph...and%20TNotebook.html
jfheins
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 918
Erhaltene Danke: 158

Win 10
VS 2013, VS2015
BeitragVerfasst: So 29.03.09 22:26 
Ergänzend sollte gesagt werden, dass die Komponente TNotebook für Windows 3.11 programmiert wurde ...

Wie übrigens auch in der Delphi-Hilfe steht, sollte man für neuere Software (< 14 Jahre alt) eher zu TPageControl greifen ;)