Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I get Windows XP Buttons in a Windows Classic Style form?

Status
Not open for further replies.

MrDong

Programmer
Feb 22, 2007
6
CH
Hello All
I have a very nicely skinned form here. It looks perfect under WinXP Colour Scheme but ugly under the Classic. Is it possible to force VFP to used the standard WinXP Scheme or at least some parts like buttons or pageframes?
I would be very grateful for some help before I start cutting Bitmaps :)

Thanks a lot

MrDong
 
MrDong,

Yes, I agree with Dave. However, before you start rolling your own design, keep in mind that the user has presumably chosen Windows Classic vs XP for a good reason. Think carefully about whether you want to override their preference.

In my present project, I am designing the app under Classic. But the users are using a variety of XP themes, which personally I think look terrible. But who am I to argue with the paying customer?

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
If some application start messing with MY settings on MY computer that application will be removed instantly!
So, I agree with Mike and Dave.

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
I agree with Borislav, but just in case (code by Carlos Alloatti):
Code:
Declare Integer SetWindowTheme In UxTheme ;
    INTEGER HWnd,;
    String pszSubAppName,;
    String pszSubIdList

SetWindowTheme(.HWnd, Null, "")
This worked

MSDN: "To prevent visual styles from being applied to a specified window, pass an empty string, (L" "), which will not match any section entries."
 
All,
Thanks a lot for you answers.
I also agree with you guys not to force the user into something they don't want. Never the less I wil give it a try because it fits better into our corporate design.

Thanks a lot
MrDong
 
ilyad:
I dont get it. How does this code help? If I want my app to run with xp themes and a color scheme of "silver", now the user changes to a color scheme of blue (default), Before the app starts, How do I retain the silver scheme?

Tested it with the application running and the form shown, changed the themes in control panel to classic and the form changed to classic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top