Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why do my hints show in the parent statusbar?

Status
Not open for further replies.

CADTenchy

Technical User
Dec 12, 2007
237
GB
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?


Steve (Delphi 2007 & XP)
 
For the components on my daughter form, I'm setting hint text.
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)
 
i dont understand ???????

hints dont appear on the status bar unless you put code in to do it.

Code:
private 
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
 
I certainly haven't added any code like that!
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)
 
if its an mdi app, its not normal practice to put status bars on the children.

Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top