I have implemented Blit-style menus on a canvas and I want to add
a feature that requires the menu to scroll one entry and reposition
the cursor. In a scrollable menu, if the pointer is for example in
the last entry, the menu will scroll up one entry (if it can),
and move the pointer to that entry just scrolled. Similiarly when
the pointer is in the top entry and it can be scrolled down.
'event generate <Motion> ... -warp 1' is not doing what it is supposed
to do and I don't know why. The window manager is not catching or
stopping the event, and I have forced focus onto the window where I
want the pointer to be moved with no success. Would anyone have any
idea as to what it going on? I am pretty sure I have used pointer
warping once before and it worked.
Regards,
Noel Hunt
a feature that requires the menu to scroll one entry and reposition
the cursor. In a scrollable menu, if the pointer is for example in
the last entry, the menu will scroll up one entry (if it can),
and move the pointer to that entry just scrolled. Similiarly when
the pointer is in the top entry and it can be scrolled down.
'event generate <Motion> ... -warp 1' is not doing what it is supposed
to do and I don't know why. The window manager is not catching or
stopping the event, and I have forced focus onto the window where I
want the pointer to be moved with no success. Would anyone have any
idea as to what it going on? I am pretty sure I have used pointer
warping once before and it worked.
Regards,
Noel Hunt