steve3d Posted September 24, 2012 Share Posted September 24, 2012 I need to create a Button/IconButton to work differently when user click or double click, but I found this problem, when I need the double click, there is always a CLICKED fired before and after this DOUBLE_CLICK callback, so the actual behavior of DOUBLE_CLICK on a button works like this: CLICK, DOUBLE_CLICK CLICK, so there is no way to capture a single double click on a button, to make this work, the only solution is to use the CTRL/ALT/SHIFT modify keys. My problem is, is this designed behavior of double clicking a button/icon button? Link to comment
manguste Posted September 26, 2012 Share Posted September 26, 2012 This issue is system-related. First the system sends a click event, and only after that a double click one. However, there's quite an easy workaround for that: you need to set a timeout after CLICK is received (in a separate thread). If there's no DOUBLE_CLICK after that, the app reacts according to a single-click logic. Link to comment
Recommended Posts