Jump to content

Debugging input/label controls


BALA
 Share

Recommended Posts

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)
GUICreate("BA-MERGE", 260, 170, -1, -1, -1, $WS_EX_ACCEPTFILES)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
GUISetState()

GUICtrlCreateLabel("Type in the path of the GIF file you want to use. (Alternatively, you can drag and drop the file to the input.)", 10, 10)

$inputgif = GUICtrlCreateInput("", 10, 40)
GUICtrlSetState(-1, $GUI_DROPACCEPTED)
$inputfile = GUICtrlCreateInput("", 10, 80)
GUICtrlSetState(-1, $GUI_DROPACCEPTED)

Func CLOSEClicked()
    Exit
EndFunc

While 1
    Sleep(10)
WEnd

But now the inputs went all weird. So what happened? Also, is there a way that I can make it so the label control is "word-wrapped" in the editor?

[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

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)
GUICreate("BA-MERGE", 260, 170, -1, -1, -1, $WS_EX_ACCEPTFILES)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
GUISetState()

GUICtrlCreateLabel("Type in the path of the GIF file you want to use. (Alternatively, you can drag and drop the file to the input.)", 10, 10, 220, 40)

$inputgif = GUICtrlCreateInput("", 10, 60)
GUICtrlSetState(-1, $GUI_DROPACCEPTED)
$inputfile = GUICtrlCreateInput("", 10, 100)
GUICtrlSetState(-1, $GUI_DROPACCEPTED)

Func CLOSEClicked()
    Exit
EndFunc

While 1
    Sleep(10)
WEnd


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)
GUICreate("BA-MERGE", 260, 170, -1, -1, -1, $WS_EX_ACCEPTFILES)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
GUISetState()

GUICtrlCreateLabel("Type in the path of the GIF file you want to use. (Alternatively, you can drag and drop the file to the input.)", 10, 10, 220, 40)

$inputgif = GUICtrlCreateInput("", 10, 60,240,20)
GUICtrlSetState(-1, $GUI_DROPACCEPTED)
$inputfile = GUICtrlCreateInput("", 10, 100,240,20)
GUICtrlSetState(-1, $GUI_DROPACCEPTED)

Func CLOSEClicked()
    Exit
EndFunc

While 1
    Sleep(10)
WEnd


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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