Sign in to follow this  
Followers 0
D4rk^S0ul

Having image as background

2 posts in this topic

#1 ·  Posted (edited)

Is there a way to set a image as a background so i can have workin buttons atm if i create a picture on the whole of the gui it ever covers over the buttons or it shows buttons but they dont work does any1 know how to do so my code so far is

#include <GuiConstants.au3>

GuiCreate("Installation", 450, 240,-1, -1 , BitOR($WS_SYSMENU, $WS_CAPTION))

GUICtrlCreatePic(@ScriptDir & "\Images\IV-2.jpg", 0, 0, 450, 240)
$Button_1 = GuiCtrlCreateButton("Install", 60, 77, 70, 20)
$Button_2 = GuiCtrlCreateButton("Repair", 60, 120, 70, 20)
$Button_3 = GuiCtrlCreateButton("Uninstall", 60, 165, 70, 20)


GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    EndSelect
WEnd
Exit

If you need the image it is Posted Image

I have been tryin to use GuiCtrlSetState(-1,$GUI_DISABLE) but it doesnt seem to work.

Thx in advance,

D4rk

Edited by D4rk^S0ul

Share this post


Link to post
Share on other sites



#include <GuiConstants.au3>

GuiCreate("Installation", 450, 240,-1, -1 , BitOR($WS_SYSMENU, $WS_CAPTION))
$pic = GUICtrlCreatePic(@ScriptDir & "\Images\IV-2.jpg", 0, 0, 450, 240)
GUICtrlSetState($pic, $GUI_DISABLE)
$Button_1 = GuiCtrlCreateButton("Install", 60, 77, 70, 20)
$Button_2 = GuiCtrlCreateButton("Repair", 60, 120, 70, 20)
$Button_3 = GuiCtrlCreateButton("Uninstall", 60, 165, 70, 20)

GuiSetState()

While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    EndSelect
WEnd

Exit


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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  
Followers 0