Jump to content

"Word wrap" with AutoIt


BALA
 Share

Recommended Posts

Here's a simple GUI I have:

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)
$mainwindow = GUICreate("BA-LETED", 240, 140)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
GUISetState()

GUICtrlCreateLabel("Type in the path of the directory you want to scan and press 'BA-LETE' to start scanning.", 10, 10)

$input = GUICtrlCreateInput("C:\", 30, 60, 180, 20)

$begin = GUICtrlCreateButton("BA-LETE", 60, 100, 120)
GUICtrlSetOnEvent($begin, "Begin")

How can I make it so all the writing shows in the window without having to make the window wider?

[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Link to comment
Share on other sites

Will that "word wrap" the writing?

Ah, yes thank you.

Edited by BALA
[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
Link to comment
Share on other sites

Well, I see that you have NOT specified the width and length of the label. So change this:

GUICtrlCreateLabel("Type in the path of the directory you want to scan and press 'BA-LETE' to start scanning.", 10, 10)oÝ÷ Ù:-+ºÚ"µÍÕRPÝÜX]SX[
    ][ÝÕH[H]ÙHXÝÜH[ÝHØ[ÈØØ[[ÜÈ  ÌÎNÐKSUIÌÎNÈÈÝØØ[[Ë][ÝËLL

oÝ÷ ج¶)µçmç^²*Þw¶§v¢H*.«Þz÷§ÞµìmÊjv¥²!jxÛh¶¬jëh×6GUICtrlCreateEdit("Type in the path of the directory you want to scan and press 'BA-LETE' to start scanning.", 10, 10, 220, 40, $ES_READONLY + $WS_VSCROLL + $ES_AUTOVSCROLL)

Kurt

*Edit* Larry beat me to it :P

Edited by _Kurt

Awaiting Diablo III..

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...