Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi StatusBar - Problem (https://www.delphipraxis.net/14491-statusbar-problem.html)

dopeline 10. Jan 2004 13:20


StatusBar - Problem
 
hallo!
in meinem programm werden die hints von buttons usw.in einer statusbar des hauptformulars im panel 0 angezeigt:
(deklariert unter public)
Delphi-Quellcode:
procedure TFormHaupt.DisplayHint(Sender: TObject);
begin
StatusBar1.Panels[0].Text := GetLongHint(Application.Hint);
end;
ich habe auf einem modalen formular auch eine statusbar. wie kann ich ihm sagen, dass er alle hints auf diesem formular nicht in der statusleiste des hauptformulars anzeigt, sondern in dem forumlar, wo auch die buttons mit den hints sind?


Gruß, dopeline

MrKnogge 10. Jan 2004 13:42

Re: StatusBar - Problem
 
Du musst es erneut zuweisen, ich würd's ins OnShow- Ereigniss reinpacken.
Is der gleiche Code wie von dir gepostet, nur eben auf dem neuen Formular.

Im OnClose machste dann alles wieder rückgängig.


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:51 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