Jump to content

Recommended Posts

Posted

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!

Posted

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

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
×
×
  • Create New...