Link to home
Start Free TrialLog in
Avatar of jbshumate
jbshumate

asked on

Icon in form title bar

I have an mdi application with 3 different types of children.  When I set the icon property for the children 1 type places the icon in the title bar and the other 2 types do not.  The icon is set because I am copying it to a button for each window and that changes when the property changes.  I am having a hard time figuring out what else could be different between these 3 types of windows.  Any suggestions?
Avatar of FrankTheRat
FrankTheRat

1. Have you tried setting the icons at design time? I haven't tried doing it at run time but design time works fine.

2. I assume that all the child forms are descendants of TForm, and not of each other, or are they all the same type?

3. Let me know where you are setting the icon: in the constructor or somewhere else?

FrankTheRat
Avatar of jbshumate

ASKER

I am setting the icon at design time and it works fine for one of the child forms but not the other 2.  I looked at the help file and it said the icon property sets the icon used when the window is minimized, but I always thought it also set the icon used in the title bar.  The forms all derive from TForm.

Thanks
I am setting the icon at design time and it works fine for one of the child forms but not the other 2.  I looked at the help file and it said the icon property sets the icon used when the window is minimized, but I always thought it also set the icon used in the title bar.  The forms all derive from TForm.

Thanks
I am setting the icon at design time and it works fine for one of the child forms but not the other 2.  I looked at the help file and it said the icon property sets the icon used when the window is minimized, but I always thought it also set the icon used in the title bar.  The forms all derive from TForm.

Thanks
I am setting the icon at design time and it works fine for one of the child forms but not the other 2.  I looked at the help file and it said the icon property sets the icon used when the window is minimized, but I always thought it also set the icon used in the title bar.  The forms all derive from TForm.

Thanks
This was my fault.  2 of the windows did not have style set to sizable.  Apparently that changes the icon behaviour.
This was my fault.  2 of the windows did not have style set to sizable.  Apparently that changes the icon behaviour.
jbshumate:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial