Jump to content
Sign in to follow this  
Dark12363

Custom Gui's?

Recommended Posts

Dark12363

Can we make something like custom gui's like not window in autoit? something like this:

Posted Image

Not like this:

Posted Image

Please help me Q___Q.

Share this post


Link to post
Share on other sites
JLogan3o13

Hi, Dark12363. You are somewhat limited in the look and feel of the controls you create for your GUI. You can always overlay an image on the GUI itself or a button, to get the effect you would like. Here is a quick and dirty script to point you in that direction. I saved the pic you have above as a JPG, and a picture of the Add Item as a BMP. I'm sure someone who is much better at GUIs will wander by eventually, but this will get you started.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>

Opt("GUIOnEventMode", 1)

$var = GUICreate( "Test GUI Background", 800, 600, -1)
$pic = GUICtrlCreatePic(@DesktopDir & '1.jpg', 0, 0, 800, 600)
GUICtrlSetState($pic, $GUI_DISABLE)
GUICtrlCreateButton("", 336, 219, 109, 30, $BS_BITMAP)
GUICtrlSetImage(-1, @DesktopDir & "Add Item.bmp")
GUICtrlSetOnEvent(-1, "Test")
GUISetState(@SW_SHOW)

    Do
        $msg = GUIGetMsg()
    Until $msg = $GUI_EVENT_CLOSE
Exit

Func Test()
MsgBox(0, "", "You clicked Add!")
Exit
EndFunc

√-1 2^3 ∑ π, and it was delicious!

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.