Sign in to follow this  
Followers 0
CyberSlug

XP Themes and GUI appearance

5 posts in this topic

See Attached screenshot... Why do the second and third buttons look the way they do?

; Using a recent November unstable version of AutoIt on XP Pro sp2
Global $GUI_EVENT_CLOSE = -3, $BS_ICON = 0x40
GuiCreate("Example", 300, 100)

GuiCtrlCreateButton("One", 10, 10, 50, 50)
GuiCtrlCreateButton("Two", 100, 10, 50, 50, $BS_ICON)
GuiCtrlCreateButton("Three", 180, 10, 50, 50, $BS_ICON)
   GuiCtrlSetImage(-1, "shell32.dll")

GuiSetState()
While GuiGetMsg() <> $GUI_EVENT_CLOSE
WEnd

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites



Simple (I think). The control is either owner drawn and isn't properly calling the theme API or a native Windows feature doesn't have automatic theme support when used this way. In either case, the answer is to have a look at the Visual Style related functions. They are declared in uxtheme.h (Platform SDK is required, I believe). In this situation, the correct functions must be called (Dynamically so as to be compatible with Pre-XP or whenver uxtheme.dll came about).

Share this post


Link to post
Share on other sites

I get the same result under XP/SP2 :)

Share this post


Link to post
Share on other sites

I had a similar result using progress bars...In the default Windows XP theme, if you wanted the scrollbar to be smooth it would default to being a segmented one, but under Win2k and the classic theme, you'd get the smooth scrollbar..

Weird, but nonetheless acceptable I think!

Share this post


Link to post
Share on other sites

This is diffence between classic xp and xp themed

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0