Jump to content

Can't click buttons that are on image


Recommended Posts

I have couple of buttons that are on an image, and they can't be clicked. Example: example.jpg

Button1 is clickable
Button2 is half-clickable
Button3 is unclickable at all. Any ideas how to make Button3 clickable? :)
 

 

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form1", 405, 293, 453, 273)
$Pic1 = GUICtrlCreatePic("Untitled.jpg", 24, 24, 252, 156)
$Button1 = GUICtrlCreateButton("Button1", 304, 96, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 240, 136, 75, 25)
$Button3 = GUICtrlCreateButton("Button3", 88, 136, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

 

test.au3

Untitled.jpg

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