Changes between Initial Version and Version 1 of Ticket #2900, comment 3


Ignore:
Timestamp:
11/19/14 14:24:24 (6 years ago)
Author:
Melba23
Comment:

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.
     1I 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.
    22
    33But 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.