Sign in to follow this  
Followers 0
fisofo

Classic style in Non-classic XP?

7 posts in this topic

I'm just learning GUI's, so be patient :whistle:

Is there a way to force my GUI to have the "XP Classic" theme rather than my current one? Basically, the buttons are all up n' fancy in my current xp theme, and i'm wondering if there's an easy way to make them as plain as can be in the GUI i'm working on.

Thanks!

Share this post


Link to post
Share on other sites



I'm just learning GUI's, so be patient :whistle:

Is there a way to force my GUI to have the "XP Classic" theme rather than my current one? Basically, the buttons are all up n' fancy in my current xp theme, and i'm wondering if there's an easy way to make them as plain as can be in the GUI i'm working on.

Thanks!

Valuater's XSkin might help you

Share this post


Link to post
Share on other sites

Valuater's XSkin might help you

You pointed me in the right direction... basically :whistle:

I found this:

DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0)

So if anyone was wondering, just put that line in your script and it'll be all xp classic from there.

Thanks Paulie! And Valuater for DllCall!

Share this post


Link to post
Share on other sites

moment sooner and you'd have gotten credit :whistle: Thanks though, that's much more informative than my post.

Just wrap it and keep it in an include or something....

for example

; Functionality :
; just info about possibility to turn off theme-using in scripts/compiled-exe with using GUI stuff
; This info was produced by Holger
Func _XPThemeLevel($nFlag = 0)
    ; $nFlag = 0  ; Visual styles are completely disabled in the running script
    ; $nFlag = 1; Nonclient areas of the GUI can use visual styles
    ; $nFlag = 2; Controls can use visual styles (like Buttons, Progressbar, Group-ctrl's, etc.)
    ; $nFlag = 4; Web content displayed ??? (info from MSDN) can use visual styles
    ;
    ; These flags can be combined with BitOr(...)

    DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", $nFlag)
EndFunc   ;==>_XPThemeLevel

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Just wrap it and keep it in an include or something....

for example

; Functionality :
; just info about possibility to turn off theme-using in scripts/compiled-exe with using GUI stuff
; This info was produced by Holger
Func _XPThemeLevel($nFlag = 0)
    ; $nFlag = 0  ; Visual styles are completely disabled in the running script
    ; $nFlag = 1; Nonclient areas of the GUI can use visual styles
    ; $nFlag = 2; Controls can use visual styles (like Buttons, Progressbar, Group-ctrl's, etc.)
    ; $nFlag = 4; Web content displayed ??? (info from MSDN) can use visual styles
    ;
    ; These flags can be combined with BitOr(...)

    DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", $nFlag)
EndFunc   ;==>_XPThemeLevel
Hmmm, that's a good idea, much cleaner certainly...

Man, hope i start thinking like you all do at some point, it's been a few too many years since my compsci courses i'm afraid :whistle:

edit: Or perhaps i'm just starting to resemble my avatar ;)

Edited by fisofo

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