Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Icon in  form title  bar

Posted on 2003-03-26
10
Medium Priority
?
145 Views
Last Modified: 2010-04-04
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?
0
Comment
Question by:jbshumate
9 Comments
 
LVL 1

Expert Comment

by:FrankTheRat
ID: 8212403
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
0
 
LVL 1

Author Comment

by:jbshumate
ID: 8213268
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
0
 
LVL 1

Author Comment

by:jbshumate
ID: 8213366
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
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Author Comment

by:jbshumate
ID: 8213658
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
0
 
LVL 1

Author Comment

by:jbshumate
ID: 8214017
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
0
 
LVL 1

Author Comment

by:jbshumate
ID: 8214025
This was my fault.  2 of the windows did not have style set to sizable.  Apparently that changes the icon behaviour.
0
 
LVL 1

Author Comment

by:jbshumate
ID: 8214206
This was my fault.  2 of the windows did not have style set to sizable.  Apparently that changes the icon behaviour.
0
 

Expert Comment

by:CleanupPing
ID: 9316595
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.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10695476
PAQed, with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Screencast - Getting to Know the Pipeline
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question