Jump to content
Sign in to follow this  
Kyler Carlson

text on 2 lines

Recommended Posts

Kyler Carlson

hey i think this belongs here... i'll edit my other post...

i know this is simple but i'm not finding it so... how do i get this button to have its text on 2 lines since its too long for one line?

GUICtrlCreateButton("Autofind Game", 245, 105, 105,40)

Share this post


Link to post
Share on other sites
Helge

Either do the font-size smaller (GUICtrlSetFont) or make the control wider. Simple :whistle:

Edit : crap... I misread your post. You could do this :

GUICtrlCreateButton("Autofind" & @CRLF & "Game", 245, 105, 105,40)

Edit II : crap again. CRLF doesn't work in buttons. Man, I should get some sleep.

Edited by Helge

Share this post


Link to post
Share on other sites
Kyler Carlson

that isn't working. its wat i had first tried... i dunno y but its showing up as two boxes rather than a line break

Share this post


Link to post
Share on other sites
Helge

Yeah, I know. Would it be hard to set up the control's width, btw ? :whistle:

Share this post


Link to post
Share on other sites
Kyler Carlson

um... it would mess up my gui pretty bad so i'm gonna use that as an absolute last resort. any other ideas?

Share this post


Link to post
Share on other sites
Helge

Gaahr. Use $BS_MULTILINE as button-style.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.