Autor Beitrag
mlhk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 30



BeitragVerfasst: Do 12.03.09 22:19 
hey,

ich möchte in meinen delphi programm eine auswahl leiste machen, die so aufgebaut ist wie die tabs in firefox, hab da schon mal bisschen mit headcontrol rumgespielt war aber alles nicht so richtig erfolg reich, also ich will in die tabs dann verschiedene programmteile verlinken


Moderiert von user profile iconGausi: Topic aus Multimedia / Grafik verschoben am Fr 13.03.2009 um 10:16
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Do 12.03.09 22:22 
Headcontrol kenn ich nicht.
Aber meinst du sowas wie TPageControl?

_________________
PROGRAMMER: A device for converting coffee into software.
mlhk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 30



BeitragVerfasst: Do 12.03.09 22:24 
wie richtet man das ein
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Do 12.03.09 22:25 
Aufs Formular ziehen -> rechtsklick -> Neue Seite (bzw. New Page)

_________________
PROGRAMMER: A device for converting coffee into software.
mlhk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 30



BeitragVerfasst: Do 12.03.09 22:28 
ja, soweit ist mir das klar, aber dann kann man nicht wählen, das feld überdackt nun alles darunter, ich stell mir halt so eine richtige leiste vor in der der name des programm teils steht, den man arauf hin anzeigen, wo bei der rest wieder im tab verschwindet
mlhk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 30



BeitragVerfasst: Do 12.03.09 22:32 
gibt es sonst noch eine andere variante
MDX
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Do 12.03.09 22:59 
Ne Komponente schreiben =)
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 13.03.09 08:05 
user profile iconmlhk hat folgendes geschrieben Zum zitierten Posting springen:
ja, soweit ist mir das klar, aber dann kann man nicht wählen, das feld überdackt nun alles darunter, ich stell mir halt so eine richtige leiste vor in der der name des programm teils steht, den man arauf hin anzeigen, wo bei der rest wieder im tab verschwindet
Meinst du das so, dass du nur die Tabs oben haben willst ohne Inhalt? Dafür gibt es TTabControl, aber eigentlich ist TPageControl viel einfacher. ;-)
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 13.03.09 10:15 
user profile iconmlhk hat folgendes geschrieben Zum zitierten Posting springen:
ja, soweit ist mir das klar, aber dann kann man nicht wählen, das feld überdackt nun alles darunter
Du muss natürlich die Sachen, die auf dieser neuen Seite dargestellt werden sollen, auch auf diese Seite packen.

_________________
We are, we were and will not be.
bummi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1248
Erhaltene Danke: 187

XP - Server 2008R2
D2 - Delphi XE
BeitragVerfasst: Fr 13.03.09 10:17 
Ein leeres Pagecontol und für jedem gewünschten Folder ein Formular erzeugen und mit ManualDock verankern:

Beispiel:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
constructor TTemplateForm.Create(AParent : TWinControl);
var
  tsParent : TTabSheet;
  nCount:Integer;
begin
  inherited Create(AParent);
  Parent := AParent;

  if (AParent is TPageControl) then begin
    Self.ManualDock(AParent, nil, alClient);

    tsParent := TTabSheet(Self.Parent);
    tsParent.Name := 'ts' + Self.Name;
    tsParent.PageIndex := tsParent.PageControl.PageCount - 1;
  end;


Moderiert von user profile iconKha: Delphi-Tags hinzugefügt
mlhk Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 30



BeitragVerfasst: Fr 13.03.09 18:49 
ah, allerherzlichsten dank, ich hab mal ausprobiert und funktioniert wirklich einwandfrei, sehr schön das einem hier so schnell und gut geholfen wird


mfg

max