|
Developer Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./plotter gbtcursor.pro
gbtcursor |
function gbtcursor([/noshow], [/nocrosshair], [label=string]) |
Get a mouse event when the user presses any mouse button.
This returns a mouse event structure when the user presses any mouse button. The default behavior is to bring the plotter window to the foreground (show) and to switch to the crosshair cursor. Both of these features can be turned off. If the crosshair state is changed during this function, it always returns to the previous crosshair state on exit. Additionally, the "Left Click:" label is changed to the "Click a Mouse Button". Alternatively labels can be supplied through the optional label keyword.
See the IDL documentation for the events available from a DRAW_WIDGET. Users should use click in most cases.