Jump to content

How to click on images which is inside a panel?


Vinodh
 Share

Recommended Posts

Ok, well what you want to do is ensure that when you create the image, you assign it to a variable, like so:

$Pic1 = GuiCtrlCreatePic(...

Then in your main while loop, you insert an entry for this pic:

While 1 ;Main While Loop
    $Msg = GuiGetMsg() ;Gets CTRLID of clicked GUI CTRL
    Switch $Msg ;Creates a case statement tested agains $Msg
        Case $Pic1 ;True if $Pic1 is clicked
            ;Do Something
        Case $Pic2 ;For example, if you had a second picture, which is clicked
            ;Do Something
    EndSwitch
EndWhile

Hope that helps?

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