Jump to content

Changing size of label once it is created?


coasty
 Share

Recommended Posts

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?

Link to comment
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??
Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...