Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have implemented Blit-style menus

Status
Not open for further replies.

Noel_Hunt

Programmer
Apr 20, 2021
1
0
0
AU
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top