Jump to content
Sign in to follow this  

About Aligning

Recommended Posts



I just want to ask 2 questions.

1. If I were to create GUI, what would be the best function to create Words, probably a paragraph. I've used GUICtrlCreateLabel. Is it correct?

2. If I want to align my label texts in to a paragraph font, Like this:

ask djsalkdjsakldjklsajdlksajdklsajdkljsakldjalskjdklsajdklsajdlksajdlkasjldkjsalkdjsakldjklasjdklasjkld


How can I do it?

Thanks in advanced.

Share this post

Link to post
Share on other sites

Hi, Yep it's very possible

#include <GUIConstants.au3>

$Gui = GUICreate("Label Paragraph Centered", 500, 80)
$Label = GUICtrlCreateLabel("This is a small Paragrah of text written on a Label." & @LF & _
                            "Hopefully this is waht your after.", 10, 10, 480, 60, $SS_CENTER)
GUICtrlSetFont(-1, 14, 700, Default, "Comic Sans MS")
GUICtrlSetColor(-1, 0x0000ff)

While 1
    If GUIGetMsg() = -3 Then Exit


Edited by smashly

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.