Jump to content

Set AS Background?


snoopy
 Share

Recommended Posts

Cheers Firefox :)

btw whats the diference between GuiCtrlSetState()

and GUISetState()

GUISetState changes the state of a GUI window. GUICtrlSetState changes the state of a control such as a button or label or any GUI control at all those were just examples.
Link to comment
Share on other sites

GUISetState changes the state of a GUI window. GUICtrlSetState changes the state of a control such as a button or label or any GUI control at all those were just examples.

was just wonderin because when i put it after guisetstate result:

C:\Users\Snoopy\Desktop\test.au3(19,21) : WARNING: $pic: possibly used before declaration.

GuiCtrlSetState($pic,

~~~~~~~~~~~~~~~~~~~~^

C:\Users\Snoopy\Desktop\test.au3(19,21) : ERROR: $pic: undeclared global variable.

GuiCtrlSetState($pic,

~~~~~~~~~~~~~~~~~~~~^

code:

#include <GUIConstants.au3>

Global $f_Run = False, $f_AnyChecked = False

$Pic1 = GUICtrlCreatePic(@ScriptDir&"\toontown%20awesome%20picture.JPG", 150, 0, 50, 50)

Global $Form1 = GUICreate("Form1", 625, 444, 189, 146)

Global $Credits = GUICtrlCreateButton("Credits", 0, 0, 153, 65, 0)

GUICtrlSetFont(-1, 20, 400, 0, "MS Sans Serif")

Global $MyButton1 = GUICtrlCreateButton("Start", 520, 0, 100, 30, 0)

GUICtrlSetFont(-1, 15, 800, 0, "MS Serif")

GUICtrlSetBkColor(-1, 0xFFFFE1)

Global $CheckBox1 = GUICtrlCreateCheckbox("Jump", 520, 32, 100, 30, 0)

Global $CheckBox2 = GUICtrlCreateCheckbox("Beg", 520, 72, 100, 30, 0)

Global $CheckBox3 = GUICtrlCreateCheckbox("Say", 520, 112, 100, 30, 0)

Global $CheckBox4 = GUICtrlCreateCheckbox("Roallover", 520, 160, 100, 30, 0)

$Pic1 = GUICtrlCreatePic("C:\Users\Snoopy\Desktop\toontown%20awesome%20picture.jpg", 0, 0, 625, 441, 0)

GUISetState($GUI_DISABLE)

GuiCtrlSetState($pic, $GUI_DISABLE).................

..............................................

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