rudi Posted March 11, 2009 Share Posted March 11, 2009 Hi. Is there a way to define a line break for a button text? GUICtrlCreateButton("line 1" & @crlf & "line 2", ....) doesn't work. Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
BigDod Posted March 11, 2009 Share Posted March 11, 2009 This works for me #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 633, 447, 193, 125) $Button1 = GUICtrlCreateButton("Line 1" & @CRLF & "Line 2", 160, 64, 145, 81, $BS_MULTILINE) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
rudi Posted March 11, 2009 Author Share Posted March 11, 2009 Hi.$BS_MULTILINEThat's what I missed, thanks!Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now