MSasu Posted March 29, 2010 Posted March 29, 2010 Can someone tell if there is a workaround to capture or treat the actions from mouse’s scroll wheel performed in the middle of a GRREAD governed input? If scroll wheel is used to perform a PAN or ZOOM action there will remain a parasite image of the custom cursor (from GRDRAW or GRVECS usage) that it, the logical erase (overdraw) is done in a wrong place. Thank you. Regards, Quote
Freerefill Posted March 29, 2010 Posted March 29, 2010 I've written a few GRREAD based programs and zooming/panning has been a constant battle with me. Some programs, I've countered it by drawing all my vectors based on the zoom ratio and screen location; that way, whatever is being displayed is always being displayed on the screen, no matter what. The other thing I've done is simply expected the user to not use the scroll wheel. Unfortunately, there's no way I can think of to turn it "off" with LISP. There may be an option somewhere, and if there is, I could only imagine there -must- be a way to do it with some sort of code.. but I honestly can't think of it. Quote
alanjt Posted March 31, 2010 Posted March 31, 2010 Base things on (getvar 'viewsize) Here's a entsel/nentselp selection style example I did.. http://www.theswamp.org/index.php?topic=30660.0 Quote
MSasu Posted April 1, 2010 Author Posted April 1, 2010 Thanks for suggestions! Never thought about using current view size variation to retrieve information about dynamic zoom and/or pan – will have to take care of this. Regards, Quote
alanjt Posted April 1, 2010 Posted April 1, 2010 Thanks for suggestions!Never thought about using current view size variation to retrieve information about dynamic zoom and/or pan – will have to take care of this. Regards, You're welcome. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.