John-Paul Posted August 23, 2005 Share Posted August 23, 2005 Does anyone have an idea about how to change the Group (GuiCtrlCreateGroup) and the Radio (GUICtrlCreateRadio) values. I have reesearched the forum and looked at what I found there but no success, I also read the help file and again no help. My situation may be unusual but heres what I am using in short version. Code: GuiCtrlCreateGroup(" Selections:", 15, 271, 370, 105) GUICtrlSetColor(-1,0xffffff) ; white GUICtrlSetBkColor(-1, 0x333333) ; grey $radio_0 = GUICtrlCreateRadio ("Backup ISDN Data", 25, 285) GUICtrlSetColor(-1,0xffffff) ; white GUICtrlSetBkColor(-1,0x333333) ; grey The one piece of the puzzel that seems to dictate a lot about what I am doing is the use of.... Code: (watch word wrap!) GUICtrlCreateLabel("", 0, 93, 400, 190, $SS_SUNKEN, $WS_EX_DLGMODALFRAME) ; vert, hort, wide, high - 190/296 GUICtrlSetBkColor(-1, 0x333333) It seems that when I use the $WS_EX_DLGMODALFRAME none of the attributes that may normaly work just freeze and the only text color I get is a blue, which is not actually great for a dark grey background. Any ideas. JP Link to comment Share on other sites More sharing options...
John-Paul Posted August 24, 2005 Author Share Posted August 24, 2005 Well I guess after 24hrs if one doesn't get any response then the subject matter is a bit boring and not challenging. So here's the sample I'm working on and maybe from this you will see what I mean, if it is still boring then I conceed that I've fallen off the planet and no one can understand me. Anyway if anyone has any ideas as to how to get this to work I would be grateful as I have run out of ideas testing all that I know. jp1st.au3 Link to comment Share on other sites More sharing options...
Holger Posted August 24, 2005 Share Posted August 24, 2005 Sorry, I can't understand it really what do you mean... I tested your script here but didn't found any problem with the colors!? A good idea would be maybe to post a small screenshot of the window and mark then which control is the problem. Thanks and regards Holger 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...
John-Paul Posted August 24, 2005 Author Share Posted August 24, 2005 A good idea would be maybe to post a small screenshot of the window and mark then which control is the problem.Thanks and regardsHolger<{POST_SNAPBACK}>Thanks for the pointer, OK here is a snapshot of the problem areas. I have added a bit more code to the imaged script however nothing has changed with regards the areas effected. expandcollapse popupGuiCtrlCreateGroup(" Sys Info:", 15, 110, 405, 155)GUICtrlSetBkColor(-1, 0x333333) ; greyGUICtrlSetColor(-1,0xffffff) ; whitejp Link to comment Share on other sites More sharing options... Holger Posted August 25, 2005 Holger Developers 1.3k AutoIt Spammer Share Posted August 25, 2005 (edited) Hi John-Paul the colors come from the 'Blue'-WindowsXP-Theme.So by default the colors will not change when 'Themes' are selected.But, what you can do is to disable "Themes" in your script with the command:DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0)You should call this command at the beginning of your script, like:... ;#notrayicon DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0) Dim $ProcID = "ISDN Data" ...RegardsHolger Edited August 25, 2005 by Holger 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...
John-Paul Posted August 26, 2005 Author Share Posted August 26, 2005 But, what you can do is to disable "Themes" in your script with the command:DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0)RegardsHolger<{POST_SNAPBACK}>Holger,Thanks so much , works like a dream and I would never have found this myself as it would not have occurred to me that the theme's would have impacted on the script, guess I'll keep my eyes open for that one.Hope its helpful for others, not sure if this is a common issue with other scripts but it has restarted me on this adventure again - well maybe on Mon/Tues after returning from Hof.Take care have a great weekend ALL.jp 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