Peter Kiers
asked on
Show hints on statusbar
Dear Experts,
I have used the ActionList component for my MainMenu. So my MainMenu is working
great without any code. Event the property Hint is automaticly filled in of each menu-item.
I have also a statusbar. What do I have to do that when i select a menu-item that the
hint of the menu-item will be showned in my statusbar.
Greetings Pk
ASKER
This is not exactly what i am looking for.
Greetings,
Peter Kiers
Greetings,
Peter Kiers
ASKER
I think it could be don easer, but I don't know how.
What exactly are you looking for? I assumed from your original question that you wanted the selected menu item's hint to be shown on your status bar.
I am also unsure as do what you mean on how it can be done easier? It's a pretty simple solution(as simple as I could tell) because there is no event for when your item is selected directly.
Maybe you could help me help you?
I am also unsure as do what you mean on how it can be done easier? It's a pretty simple solution(as simple as I could tell) because there is no event for when your item is selected directly.
Maybe you could help me help you?
ASKER
I think this is a way to start:
private
procedure MyHint(Sender: TObject);
end;
implementation
{....}
procedure TForm1.FormCreate(Sender: TObject);
begin
Application.OnHint := MyHint;
ShowHint := True;
Button1.Hint := 'normal yellow hint|Text in Statusbar';
Button2.Hint := 'only yellow hint|';
Button3.Hint := '|text only in statusbar';
Edit1.Hint := 'same text';
end;
procedure TForm1.MyHint(Sender: TObject);
begin
StatusBar1.SimpleText := Application.Hint;
end;
But how to tell the system to use the proprty hint of every menu-item
Greetings,
Peter Kiers
private
procedure MyHint(Sender: TObject);
end;
implementation
{....}
procedure TForm1.FormCreate(Sender: TObject);
begin
Application.OnHint := MyHint;
ShowHint := True;
Button1.Hint := 'normal yellow hint|Text in Statusbar';
Button2.Hint := 'only yellow hint|';
Button3.Hint := '|text only in statusbar';
Edit1.Hint := 'same text';
end;
procedure TForm1.MyHint(Sender: TObject);
begin
StatusBar1.SimpleText := Application.Hint;
end;
But how to tell the system to use the proprty hint of every menu-item
Greetings,
Peter Kiers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the info.
Peter K.
Peter K.
Open in new window