Autor Beitrag
moelski
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 60

XP
D6 Prof.
BeitragVerfasst: Mo 11.04.05 23:01 
Moin !

Kann mir jemand sagen wie ich den AutoHint in einer Statusbar ins letzte Panel bekomme und nicht ins erste?
Habe auch die Jedi VCL drauf. Evtl. gibt es da was passendes!?

_________________
Grüße Moelski
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Di 12.04.05 07:27 
Hallo,

in D3 pro gibt es kein AutoHint bei der Statusbar.
Um z.B. im zweiten Panel den Hint anzuzeigen, nutze ich folgenden Code:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
//...
  public
    { Public-Deklarationen }
    procedure DisplayHint(Sender: TObject);
//...

procedure TForm1.DisplayHint(Sender: TObject);
begin
  StatusBar1.Panels[1].Text := GetLongHint(Application.Hint);
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Application.OnHint := DisplayHint;
end;

Vermute mal der funktioniert auch in D6.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
moelski Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 60

XP
D6 Prof.
BeitragVerfasst: Di 12.04.05 07:54 
Moin!

Many Thx! :beer:

Das funzt ganz prima :wave:

_________________
Grüße Moelski