Jump to content
Sign in to follow this  
Zepx

About Aligning

Recommended Posts

Zepx

Hi,

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

jsalkdjlaksjd

How can I do it?

Thanks in advanced.

Share this post


Link to post
Share on other sites
smashly

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)
GUISetState()

While 1
    If GUIGetMsg() = -3 Then Exit
WEnd

Cheers

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.