Images on button with XP-Theme

  • Thread starter Mike in Paradise NL
  • Start date
M

Mike in Paradise NL

I have an application that has bitmap images on the
button. The applicaton was displaying them fine until I
added a manifest to the application to display them as XP
style buttons. I used the example manifest in the VS
2003 documentation in C#.

I have spent a couple hours scanning the web looking for
the answer to this..

What do I have to do differently to the image on a button
when it is displayed using an XP them.?

Anyone able to nudge me towards a solution?

Thanks...
 
H

Herfried K. Wagner [MVP]

Hello,

Mike in Paradise NL said:
I have an application that has bitmap images on the
button. The applicaton was displaying them fine until I
added a manifest to the application to display them as XP
style buttons. I used the example manifest in the VS
2003 documentation in C#.

I have spent a couple hours scanning the web looking for
the answer to this..

What do I have to do differently to the image on a button
when it is displayed using an XP them.?

Anyone able to nudge me towards a solution?

There is no easy way because Windows doesn't support themed buttons with
images. You must draw the button yourself by using uxtheme-API.
 
M

Mike in Paradise NL

Thanks for the info and saving me from figuring that this
must be easy and I am just missing something...Now I have
to decide if it is worth the effort...This now gets stuck
on the end of the project priorities..
 
M

Mike in Paradise NL

Thanks, I have that bookmarked..
-----Original Message-----
Thanks for the info and saving me from figuring that this
must be easy and I am just missing something...Now I have
to decide if it is worth the effort...This now gets stuck
on the end of the project priorities.

There is an example on The Code Project[1] that might help you.

[1] http://www.codeproject.com/cs/miscctrl/xp- style_button.asp

--
Kevin Westhead


.
 

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

Top