Jump to content
Sign in to follow this  
Josbe

Label Color

Recommended Posts

Josbe

Is there any way to know a Label's color(previously defined)?

I don't know (sure), if maybe some parameter in GUIRcvMsg()? :D

Thxs.

EDIT: Background color, of course.

Edited by josbe

Share this post


Link to post
Share on other sites
jpm

Is there any way to know a Label's color(previously defined)?

I don't know (sure), if maybe some parameter in GUIRcvMsg()?  :D

Thxs.

EDIT: Background color, of course.

no idea, with the feeling is not possible wait Gui expert Valik and now JON :huh2:

Share this post


Link to post
Share on other sites
Valik

Most (All?) of the color related stuff in Windows is done through functions, not messages. There would need to be a new function added for AutoIt to be able to get that information.

Share this post


Link to post
Share on other sites
pekster

Why not simply create a new variable for each control that you are changing the color for? $Control1Color = $newcolor or something.


[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Share this post


Link to post
Share on other sites
Josbe

Why not simply create a new variable for each control that you are changing the color for?  $Control1Color = $newcolor or something.

:D It's dynamic.

Share this post


Link to post
Share on other sites
pekster

It's dynamic.

So? At some point (or points) you have a command to change or set the color. At this point in your code, just add 1 more line to change the color for the associated string.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Share this post


Link to post
Share on other sites
DaLiMan

So if I understand correctly I can stop searching for some code to make a button appear red in my GUI box? (button for STOP) :D

Share this post


Link to post
Share on other sites
jpm

So if I understand correctly I can stop searching for some code to make a button appear red in my GUI box?  (button for STOP)  :D

If you get a .pic in red just add A GuiSetControlNotify and you can manage todo what you want when you click on it.

I am not sure you can have a Button rendering as in "button" control. :huh2:

Share this post


Link to post
Share on other sites
DaLiMan

OK, I'll give it a try as soon as my work allows.

Thanx.

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  

×