Jump to content

Buttons disabled after adding background image


Go to solution Solved by FireFox,

Recommended Posts

Posted

Good day everyone! I am facing a small problem here..
I am new to autoIT and therefore I have a few questions to ask.

I have made a GUI using KODA form Designer.
I've added buttons and input boxes, then I decided to add a background image to the GUI using "Picture" from the tab "Additional", but when I did, all buttons and other GUI elements were unclickable.

Why is this?

Is there a "proper way" of adding a background image?

Thanks in advance!

  • Solution
Posted

Hi,

If you read carefully the helpfile it's stated :

If a picture is set as a background picture, as the other controls will overlap, it is important to disable the pic control: GUICtrlSetState(-1, $GUI_DISABLE).

But there are many people like you who asked the same question so a quick forum search would have led you to the anwser ;)

Br, FireFox.

Posted

Hi,

If you read carefully the helpfile it's stated :

But there are many people like you who asked the same question so a quick forum search would have led you to the anwser ;)

Br, FireFox.

Funny how I found that in the help file just now xD

Anyways, thanks!

I got it solved by changing the order in which the GUI elements are made :D

Since it said "Overlap" then it must have been on top..

Posted

I got it solved by changing the order in which the GUI elements are made :D

Since it said "Overlap" then it must have been on top..

This "workaround" won't work for some cases ;)
Posted

.

as soon as you click the pic, it will overlap again ;)

Thanks for the info!

I also have a small partion where a picture changes dynamically. With the info you've given I now know what to avoid.. Thanks!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...