Changes between Initial Version and Version 1 of Ticket #2900, comment 3
- Timestamp:
- 11/19/14 14:24:24 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2900, comment 3
initial v1 1 I agree that AutoIt regards the most recently added control as "''on top''" and that the ControlID value returned by AutoIt's ''GUIGetCursorInfo'' function refers to the most recently created control. If you create the buttons with the UDF function (''_GUICtrlButton_Create'' ') then the earlier button does indeed take priority as the buttons are outside AutoIt's internal control array.1 I agree that AutoIt regards the most recently added control as "''on top''" and that the ControlID value returned by AutoIt's ''GUIGetCursorInfo'' function refers to the most recently created control. If you create the buttons with the UDF function (''_GUICtrlButton_Create'') then the earlier button does indeed take priority as the buttons are outside AutoIt's internal control array. 2 2 3 3 But I would argue that as AutoIt refuses to action a control in a region where it overlaps another - for the very good reason that it cannot read your mind and determine which control you were intending to action - the matter is entirely moot as you should avoid overlapping controls at all.