Jump to content

SOLVED: GUIMsg() 2 Images - Need to know when top one clicked


Lope
 Share

Recommended Posts

This works fine without the background image.

;background image that causes handles of buttons not to be received by GUIGetMsg()
GUICtrlCreatePic("images\BackgroundImage.jpg",0,$height_insw-$height_ftrimg,$width_insw,$height_ftrimg)

$h_exit=CreateNiceButton("Exit",$offsetx_mainbtn0,$offsety_mainbtn,$temp)
$h_next=CreateNiceButton("Next",$offsetx_mainbtn1,$offsety_mainbtn,$h_nextlbl)

While 1
    switch GUIGetMsg()
        case $h_next

etc

post-57474-12722013882456_thumb.jpg

Edited by Lope
Link to comment
Share on other sites

from the helpfile notes for GUICtrlCreatePic

If a picture is set as a background picture, as the other controls will overlap, it's important to disable the pic control and create it after the others controls: GuiCtrlSetState(-1,$GUI_DISABLE). This is not enough for Tab or Listview control which behave differently. In this case you need to create the picture with the $WS_CLIPSIBLINGS style, GuiCtrlSetState(-1,$GUI_ONTOP) is necessary for the Tab, TreeView or Listview control.

GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF.
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...