Autor Beitrag
G-man
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Fr 25.07.03 07:11 
Hallo,
wie kann ich eine Statusbar in Bereiche unterteilen?
Geht das mit den Panels?

_________________
...To err is human, but to really foul things up requires a computer.
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Fr 25.07.03 07:21 
warum probierst dus nicht einfach aus?

Statusbar kennt die eigenschaft Panels, wo du die Anzahl festlegen kannst incl. Beispiel in der OH.

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Fr 25.07.03 08:28 
ja genau,

einfach ein paar neue panels erstellen und was reinschreiben. zur runtime kannst du den text so ändern
ausblenden Delphi-Quelltext
1:
statusbar1.panels[index_deines_panels].caption;					

ich bin mir allerdings nicht sicher ob es caption oder text heißt. der rechner an dem ich sitzt hat kein delphi zum überprüfen

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
fcg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: Sa 26.07.03 20:14 
es ist Text...

z.B geht es so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.Button1Click(Sender: TObject);
begin
 Statusbar1.Panels.Add;
 Statusbar1.Panels[0].Text := 'Hallo';
end;


fcg

_________________
.: Wer für alles offen ist, kann nicht ganz dicht sein! :.