Jump to content

Button over Pic control


dabien99
 Share

Recommended Posts

Hi all,

I apologize if this has been asked already. I searched the forums and was unable to find anything, but of course there's a chance it was asked in some form and I missed it.

My question is: How can I get a button control to work over a Picture control?

For example, suppose I had a Picture control in a GUI showing the picture of a maze. Now I create a button and place it in the center of the maze. When I compile and push the button, it doesn't appear to respond; however, when I remove the Picture control, leaving only the button, the button works fine.

Does anyone know how I can make this work? I would really appreciate if someone could help me solve this issue.

Thanks,

dabien99

Link to comment
Share on other sites

Hi all,

I apologize if this has been asked already. I searched the forums and was unable to find anything, but of course there's a chance it was asked in some form and I missed it.

My question is: How can I get a button control to work over a Picture control?

For example, suppose I had a Picture control in a GUI showing the picture of a maze. Now I create a button and place it in the center of the maze. When I compile and push the button, it doesn't appear to respond; however, when I remove the Picture control, leaving only the button, the button works fine.

Does anyone know how I can make this work? I would really appreciate if someone could help me solve this issue.

Thanks,

dabien99

Welcome to the AutoIt forums dabien99 :D

Since you are new and need to form good habits I won't tell you the answer but how to find it.

First you should look in the help for GuiCtrlCreatePic which tells you the answer.

If that were to fail, (but in this case it shouldn't) then you should try searching the forums because this question has been asked every few weeks since I've been using the forums which is over 5 years.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Welcome to the AutoIt forums dabien99 :D

Since you are new and need to form good habits I won't tell you the answer but how to find it.

First you should look in the help for GuiCtrlCreatePic which tells you the answer.

If that were to fail, (but in this case it shouldn't) then you should try searching the forums because this question has been asked every few weeks since I've been using the forums which is over 5 years.

To answer my own question, all I needed to do was change the state of the Picture control to disabled, by using the GUICtrlSetState function (setting the state of that control to $GUI_DISABLE)

Thanks Martin!

Link to comment
Share on other sites

To answer my own question, all I needed to do was change the state of the Picture control to disabled, by using the GUICtrlSetState function (setting the state of that control to $GUI_DISABLE)

Thanks Martin!

Excellent :D

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
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...