Jump to content
Sign in to follow this  
Lope

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

Recommended Posts

Lope

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

Share this post


Link to post
Share on other sites
Yoriz

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.

Share this post


Link to post
Share on other sites
Lope

Thanks, sorry I missed that.

Share this post


Link to post
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
Sign in to follow this  

×