Jump to content

Recommended Posts

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
Posted

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

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...