fisofo Posted November 1, 2006 Share Posted November 1, 2006 I'm just learning GUI's, so be patient 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! Link to comment Share on other sites More sharing options...
Paulie Posted November 1, 2006 Share Posted November 1, 2006 I'm just learning GUI's, so be patient 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 Link to comment Share on other sites More sharing options...
Holger Posted November 1, 2006 Share Posted November 1, 2006 http://www.autoitscript.com/forum/index.php?showtopic=15118 Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
fisofo Posted November 1, 2006 Author Share Posted November 1, 2006 Valuater's XSkin might help youYou pointed me in the right direction... basically 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! Link to comment Share on other sites More sharing options...
fisofo Posted November 1, 2006 Author Share Posted November 1, 2006 http://www.autoitscript.com/forum/index.php?showtopic=15118moment sooner and you'd have gotten credit Thanks though, that's much more informative than my post. Link to comment Share on other sites More sharing options...
GaryFrost Posted November 1, 2006 Share Posted November 1, 2006 moment sooner and you'd have gotten credit 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. Link to comment Share on other sites More sharing options...
fisofo Posted November 1, 2006 Author Share Posted November 1, 2006 (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 ;==>_XPThemeLevelHmmm, 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 edit: Or perhaps i'm just starting to resemble my avatar Edited November 1, 2006 by fisofo Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now