473,487 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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
Nov 21 '05 #1
9 1488
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 ...
I need an image that agrees with the one shown at the right end of the titlebar.

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

Nov 21 '05 #2
" Just Me" <ne********@a-znet.com> schrieb:
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?


VB6 sample:

Drawing with XP Visual Styles
<URL:http://vbaccelerator.com/article.asp?id=4091>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #3
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
"Brian Schwartz" <ow***@fishnetcomponents.com.no.spam> wrote in message
news:eT**************@TK2MSFTNGP09.phx.gbl...
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 ...
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


Nov 21 '05 #4
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!


Nov 21 '05 #5
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

"Brian Schwartz" <ow***@fishnetcomponents.com.no.spam> wrote in message
news:uR**************@TK2MSFTNGP14.phx.gbl... 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!

Nov 21 '05 #6
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
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
" Just Me" <ne********@a-znet.com> schrieb:
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?


VB6 sample:

Drawing with XP Visual Styles
<URL:http://vbaccelerator.com/article.asp?id=4091>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #7
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!


Nov 21 '05 #8
> 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!


Nov 21 '05 #9
Thanks

"Brian Schwartz" <ow***@fishnetcomponents.com.no.spam> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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!

Nov 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4034
by: mr | last post by:
i am working on a site that uses image maps for certain files. ive been having problems to make these mapped areas work on mac's (os 8, ie). view the site here: http://navigation.emolife.net ...
2
16179
by: fleemo17 | last post by:
I thought this would be very simple to set up in CSS, but I'm having difficulty making it work in several browsers. I'd simply like to have an image float at the upper right hand corner of my web...
3
1677
by: mcyi2mr3 | last post by:
Hi all I'm new to javascript and im trying to add a close button function to my certain pages of my site. I use this code: <a href='javascript:window.close();'>Close Window</a> to create a...
0
3317
by: SamSpade | last post by:
Bitmap in the upper right corner that is used to close a window. I need to programmatically get copy of it in my program. Note it changes with the theme. Is that possible? Thanks for any info
3
12856
by: Chris | last post by:
Hi, I need to get an image of a control (ListView) so i can save it to a file. It's pretty easy to get the Graphics with the CreateGraphics() function on every control, but I don't know how I...
1
3659
by: D. Yates | last post by:
I can't seem to figure out why I can't StretchBlt an image that I have loaded from my hard drive. There are two button events below. The first button event, btnFormStretch_Click, works fine, but...
9
1378
by: Varangian | last post by:
Hello is there a way to check if an image is over another Image ? thanks
5
2587
by: lord.zoltar | last post by:
How can I prevent the big close button in the top of the window from closing the window? I want to have and "are you sure?" confirmation so the user must press "Yes" before the program ends. Right...
5
34347
by: jimmy | last post by:
Hi all, I want to capture the event when the browser's close button is clicked in an html page. I tried using the event.ClientX and event.ClientY property in the body unload event, and this...
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.