Jump to content
Sign in to follow this  
snoopy

Set AS Background?

Recommended Posts

snoopy

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

GUISetState(@SW_SHOW) as background........... IT goes all over my buttons -.-

TNX

Share this post


Link to post
Share on other sites
FireFox

@snoopy

GuiCtrlSetState($pic, $GUI_DISABLE)

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
snoopy

@snoopy

GuiCtrlSetState($pic, $GUI_DISABLE)

Cheers, FireFox.

Cheers Firefox :)

btw whats the diference between GuiCtrlSetState()

and GUISetState()

Share this post


Link to post
Share on other sites
Tomb

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.

Share this post


Link to post
Share on other sites
snoopy

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

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

Share this post


Link to post
Share on other sites
Tomb

you named the control $Pic1 so it should be GuiCtrlSetState($pic1, $GUI_DISABLE)

Share this post


Link to post
Share on other sites
snoopy

FIXED TNX

Edited by snoopy

Share this post


Link to post
Share on other sites
snoopy

FIXED TNX

Cheers Firefox , but no success at getting the checkboxes over the background :-X ? does it not aply to the full window?

Share this post


Link to post
Share on other sites
Tomb

Cheers Firefox , but no success at getting the checkboxes over the background :-X ? does it not aply to the full window?

create the pic before the checkboxes.

Share this post


Link to post
Share on other sites
FireFox

@Tomb & @snoopy

And set the state also before checkbox for example after guicreate

Cheers, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
snoopy

@Tomb & @snoopy

And set the state also before checkbox for example after guicreate

Cheers, FireFox.

Wooow Tnx FireFox, I am your No.1 fan :) ... works great

Share this post


Link to post
Share on other sites
Tomb

this is my no. 1 fan Posted Image

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  

×