Sign in to follow this  
Followers 0
John-Paul

Group and Radio color values

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

jp

1st.au3

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

<{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.

GuiCtrlCreateGroup(" Sys Info:", 15, 110, 405, 155)GUICtrlSetBkColor(-1, 0x333333) ; greyGUICtrlSetColor(-1,0xffffff) ; whitejp


            
        

        
            
                

    
        
            
        
    


            
        

        
            
                
                
                
            
            
                
            
        
        
    

    
        
            Share this post
            
Link to post
            
            
            

            
                Share on other sites
                

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

            
        
    


    

                    
                
                    
                    
                    






    
    
        
Holger   

    
        
    
             10
    
        
    

        
            
                AutoIt Spammer
            
            

            
                

    
        
    

            
            Developers
            
                
            
            
                

    
        
    
             10
    
        
    

                1,343 posts
                
                

            
        
    
    
        


    

    
        
            
            
                
            
            
        

        
    #5 · 
            Posted 
            
                (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"
...

Regards

Holger

Edited by Holger

Share this post


Link to post
Share on other sites

But, what you can do is to disable "Themes" in your script with the command:

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

Regards

Holger

<{POST_SNAPBACK}>

Holger,

Thanks so much :whistle: , 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

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