×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

why do my hints show in the parent statusbar?

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?
 

Steve (Delphi 2007 & XP)

RE: why do my hints show in the parent statusbar?

how are you displaying the hints in the status bar?

Aaron

RE: why do my hints show in the parent statusbar?

(OP)
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)

RE: why do my hints show in the parent statusbar?

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

RE: why do my hints show in the parent statusbar?

(OP)
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)

RE: why do my hints show in the parent statusbar?

if its an mdi app, its not normal practice to put status bars on the children.

Aaron

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close