Where is the image for the close (X) icom in the window upper right NC corner

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

I need an image that agrees with the one shown at the right end of the title
bar.

That is, the image for the button that closes the window.

I believe it changes with changes in the theme so I can't simply dup one.

Any one know how I can, at run time, obtain the image currently being used?


Thanks
 
Windows' special icons can be found in the Marlett font. The X you're
looking for is the letter 'r' in that font. So--in VB change your font to
Marlett, print an r and then you can change back to your normal font.

Brian
--

Brian Schwartz
FishNet Components
http://www.fishnetcomponents.com
Building better tools for developers - Be part of it!


Just Me wrote in message ...
 
That interesting, I'll try that but I think that raises other questions?

I believe even the size of the button changes with the theme.

I'm just returning to this. I worked on it some time ago and if I remember
correctly, I made an image to look like the button.
And thought I was done until I changed the theme and then my image did not
look like the button. In fact, it was too small. Maybe, it wasn't simply
the theme I changed, I'll have to investigate unless someone knows what I'm
referring to and straights me out here.


Thanks for the reply
 
Don't quote me on this, but I think the reason these characters were put
into a font rather than some special image collection is that text scales
easily and automatically as display metrics change, unlike images which
remain a fixed number of pixels unless specially stretched, which then adds
the problem of distortion.

--

Brian Schwartz
FishNet Components
http://www.fishnetcomponents.com
Building better tools for developers - Be part of it!
 
So--in VB change your font to
Marlett, print an r and then you can change back to your normal >font.

Just to be sure, you mean add the code to change the font at run time. Not
change it while I'm in the IDE.


Thanks again
 
I can't image how you always find relevant things nor how Steve produces so
much unusual stuff.

I think it is going to take the rest of the day to study what he wrote.

Thanks much
 
Don't quote me on this, but I think the reason these characters were put
into a font rather than some special image collection is that text scales
easily and automatically as display metrics change, unlike images which
remain a fixed number of pixels unless specially stretched, which then adds
the problem of distortion.

--

Brian Schwartz
FishNet Components
http://www.fishnetcomponents.com
Building better tools for developers - Be part of it!
 
Just to be sure, you mean add the code to change the font
at run time. Not change it while I'm in the IDE.

Either. If you have a fixed object at design time with a Font property,
there should be no reason you can't do then.

Brian
--

Brian Schwartz
FishNet Components
http://www.fishnetcomponents.com
Building better tools for developers - Be part of it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top