why do my hints show in the parent statusbar?
why do my hints show in the parent statusbar?
(OP)
I'm trying to use hints in a form I am calling from the parent using showmodal.
But the hints for the daughter form are showing in the parent form statusbar.
I've looked for a setting to fix this but can't work it out.
How do I rectify this?
But the hints for the daughter form are showing in the parent form statusbar.
I've looked for a setting to fix this but can't work it out.
How do I rectify this?
Steve (Delphi 2007 & XP)
RE: why do my hints show in the parent statusbar?
Aaron
RE: why do my hints show in the parent statusbar?
Action/Hint-put text in
Action/Visible-true
Also tried
Help and Hints/ParentShowHint-false
Help and Hints/ShowHint-true
this is all for comboboxes on my daughter form.
Steve (Delphi 2007 & XP)
RE: why do my hints show in the parent statusbar?
hints dont appear on the status bar unless you put code in to do it.
CODE
procedure MyHint(Sender: TObject);
end;
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;
Aaron
RE: why do my hints show in the parent statusbar?
Looking for something similar I have come across the solution.
I noticed the statusbar on mainform had autohint set to true.
Setting form2 statusbar autohint to true also 'stole' the hints from form1 and showed them on form2. Result.
Steve (Delphi 2007 & XP)
RE: why do my hints show in the parent statusbar?
Aaron