Sign in to follow this  
Followers 0
coasty

Changing size of label once it is created?

4 posts in this topic

Hi,

I am using a label to create a black area on my gui, and I want it to change size when a button is clicked, eg. click a button on my gui, and the black box grows by 10 pixel wide.

How do I do this? If it is not possible, is there another way to achive this?

Share this post


Link to post
Share on other sites



Hi,

I am using a label to create a black area on my gui, and I want it to change size when a button is clicked, eg. click a button on my gui, and the black box grows by 10 pixel wide.

How do I do this? If it is not possible, is there another way to achive this?

GUICtrlSetStyle work??

Share this post


Link to post
Share on other sites

GUICtrlSetPos()


"be smart, drink your wine"

Share this post


Link to post
Share on other sites

Hang on. If you mean you set the bkg colour of it to be black, then i miss read it. Delete the control with GUICtrlDelete and Recreate it with the new size.

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