GeekIT Posted January 9, 2014 Posted January 9, 2014 Hi coders, is it possible to put a control on top of an image and have the control still usable? in the help it says that you need to disable the image but i want to use a context menu and some event monitoring on the image so it must be enabled.. thanks in advance
Moderators Melba23 Posted January 9, 2014 Moderators Posted January 9, 2014 (edited) GeekIT,If you overlap active controls then as AutoIt cannot determine which control you meant to action it fires neither. Could you not split the image and have it in sections around the control? If that is not possible there is a UDF from Malkey somewhere which reacts when a certain area is clicked without needing a control - I will see if I can find it. M23Edit: Found it. Edited January 9, 2014 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
GeekIT Posted January 9, 2014 Author Posted January 9, 2014 GeekIT, If you overlap active controls then as AutoIt cannot determine which control you meant to action it fires neither. Could you not split the image and have it in sections around the control? If that is not possible there is a UDF from Malkey somewhere which reacts when a certain area is clicked without needing a control - I will see if I can find it. M23 Edit: Found it. thanks for the quick reply! can't autoit work with layered controls? e.g. if i click on lets say an edit on top of an image then activate the edit, else use the image at the background?
Moderators Melba23 Posted January 9, 2014 Moderators Posted January 9, 2014 GeekIT, can't autoit work with layered controls?Read what I posted above. If active controls overlap then as AutoIt cannot read your mind it refuses to action either. It is a common problem on the forum - usually caused by labels being too large and overlapping other controls. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
GeekIT Posted January 9, 2014 Author Posted January 9, 2014 GeekIT, Read what I posted above. If active controls overlap then as AutoIt cannot read your mind it refuses to action either. It is a common problem on the forum - usually caused by labels being too large and overlapping other controls. M23 yes i saw your reply, i mean it's just a bit unfortunate that autoit can't decide that without further complex coding, well, i guess i have to use that udf you gave me then. thanks for the help, i'm not going to mark this treat solved yet... maybe other people have some more suggestions.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now