Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Hints global definieren (https://www.delphipraxis.net/87247-hints-global-definieren.html)

TheMiller 25. Feb 2007 21:49


Hints global definieren
 
Hallo,

ich würde die Hints gerne in einer Statusbar (Toolbar2000) anzeigen lassen. Das habe ich jetzt für Form1 geschafft. Wie kann ich aber die Hints generell in allen Forms in deren Statusbar eintragen lassen?

Habe diese Funktion:

Delphi-Quellcode:
procedure TBXHint(Sender: TObject);
...
procedure TForm1.TBXHint(Sender: TObject);
begin
  HintInterface.Panels[0].Caption:=GetLongHint(Application.Hint);
end;

procedure TForm1.Create(Sender: TObject);
begin
  Application.OnHint:=TBXHint;
end;
Muss ich diesen Code wirklich in jedes Form eintragen, oder geht das auch noch irgendwie einfacher?


Dankeschön!


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:32 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz