Jump to content

About Aligning


Zepx
 Share

Recommended Posts

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.

Link to comment
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)
GUISetState()

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

Cheers

Edited by smashly
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...