From: Maurice L. <mj...@ga...> - 2002-03-03 20:34:33
|
Alan W. Irwin writes: > I am now only mildly unhappy with this since I can always use L to get into > locate mode again. However, it might be worth changing it to put in some > warning message (e.g., "Locate mode is terminated because you are outside a > viewport. To restart use L") so that if, e.g., plwarn works, then the user > will get this message. Maybe the message about locate mode terminated would be ok, as long as it's to stderr and not stdout. As for restarting using "L" ... it's not the same thing. Locate mode invoked by the driver just outputs the two world coordinates, whereas locate mode invoked by the user can do anything desired with the info. And in fact the x01c example does present the info in different format, just to underscore that difference. > > The internally recognized keys in normal (plotting) mode in the xwin driver > > are featured in xwin.c:ProcessKey(). These are: > > ... > > Thanks for this. I have noticed experimentally, that right-clicking the > mouse when outside locate mode advances to the next page like CR, but I > don't see that right-click implemented above. Also, from the above I don't > see how <ESC> is used to leave locate mode. So the above code must only be > part of the interactive story. Well like I said, those were the recognized *keys* in *normal* (plotting) mode. The mouse is handled elsewhere, as is locate mode input. See xwin.c: Locate() and ProcessButton(). Also good to look at: MasterEH(), ButtonEH(), KeyEH(). -- Maurice LeBrun mj...@ga... |