Jump to content
Sign in to follow this  
Chobyhy

Break in CtrlEdit and CtrlLabel

Recommended Posts

Chobyhy

Is it possible to add a break between a sentence without adding another GuiCtrlCreateEdit or GuiCtrlCreateLabel?

For example...

GUICtrlCreateEdit("TestOne (Enter/Break) TestTwo (Enter/Break) TestThree", $ES_READONLY)

So it shows up as in the edit box.

TestOne

TestTwo

TestThree

If its possible to do that with edit box, is it possible with the label as well?

Share this post


Link to post
Share on other sites
Valuater

Maybe...

#include <GUIConstants.au3>

GUICreate("My GUI")  ; will create a dialog box that when displayed is centered

GUICtrlCreateLabel ("Line 1 " & @CRLF & "Cell 1",  10, 30, 200, 200) 

GUISetState ()      ; will display an empty dialog box

; Run the GUI until the dialog is closed
Do
    $msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
Chobyhy

Thanks for the help, but one more question. How can I have a scroll bar (vertical), I can't find it in the GUI Control style

At the same time I need to run $ES_READONLY

Edited by Chobyhy

Share this post


Link to post
Share on other sites
therks

GUICtrlCreateEdit('One' & @CRLF & 'Two', 0, 0, 100, 100, BitOr($ES_READONLY, $ES_WANTRETURN, $WS_VSCROLL, $WS_HSCROLL, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL))

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.