Jump to content

Pic's And Buttons


Recommended Posts

Is it possible for a pic such as GuiSetControl("pic", "C:\picture.jpg", 0, 0, 578, 235) to be clickable? Meaning like a button.... when clicked would cause a label or input field to change the text it contains.

If it's not possible for a pic to be clickable then is it possible for a button to have a green colored font instead of black and have a yellow color set for it's background instead of the color grey?

I realize I ask some outlandish questions on here sometimes. My wife tells everyone :iamstupid: to prove this point almost every day!

Link to comment
Share on other sites

Take a loot at all the Gui___ functions in the help file. Also look at AutoItSetOption("GUINotifyMode", ...)

GuiCreate("MyGui...")
$myPic = GuiSetControl("pic", "C:\picture.jpg", 0, 0, 578, 235) 
GUISetControlNotify ($myPic, 2)

GuiShow()
While 1
   sleep(100)
   $msg = GuiMsg(0)
   Select
    Case -3 = $msg;user closes window
       ExitLoop
    Case $myPic = $msg
        MsgBox(4096,"Info", "You clicked the picture!")
   EndSelect
WEnd
Exit
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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...