![]() |
Re: Mainmenü Frage
In meiner OH steht geschrieben: Set Hint to a string that provides more information about the meaning of the menu item than the Caption. The hint text appears in a Help Hint window when the user pauses with the mouse over the menu item if Help Hints are enabled (that is, if the Form’s and the Application’s ShowHint properties are true). It is also available for the code in the application’s OnHint event handler. Zu deutsch: ShowHint muss auf true gesetzt sein... Fazit: Erst OH, dann suchen, dann fragen ;) |
Re: Mainmenü Frage
Menüitems haben kein Hinweisfenster. Deren Hints werden in einer, wenn vorhanden, Statuszeile ausgegeben.
|
Re: Mainmenü Frage
Wie mache ich das, das die hints von dem menüpunkt, in einer statusbar dargestellt werden ?
|
Re: Mainmenü Frage
Zitat:
Delphi-Quellcode:
Gruß,
type
TMainForm = class(TForm) ... private procedure UpdateStatus(Sender: TObject); end; procedure TMainForm.UpdateStatus(Sender: TObject); begin StatusBar.Panels[0].Text := Application.Hint; end; procedure TMainForm.FormCreate(Sender: TObject); begin Application.OnHint := UpdateStatus; end; Marcel |
Re: Mainmenü Frage
Zitat:
![]() |
Re: Mainmenü Frage
Zitat:
Bei der TBX StatusBar geht das nur so wie ich es beschrieben habe... Gruß, Marcel |
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:02 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz