comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: change mouse cursor in draw widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: change mouse cursor in draw widget [message #64893] Thu, 29 January 2009 06:01 Go to previous message
Mike[2] is currently offline  Mike[2]
Messages: 99
Registered: December 2005
Member
On Jan 29, 8:53 am, "AndiBif...@googlemail.com"
<AndiBif...@googlemail.com> wrote:

> problem with the device keyword is that in this case my cursor will
> look like the new cursor in my whole widget and not only in the draw
> widget. but i guess this is the better tradeoff.

Hi Andi,

If you enable tracking events for your draw widget, you can change the
cursor when the pointer enters or leaves the widget. This will let
you set the cursor for an individual widget rather than the whole
hierarchy. For example, in your event handler, deal with tracking
events something like this:

case tag_names(event, /structure_name) of
'WIDGET_TRACKING': begin
if event.enter then begin
;; switch to the cursor for this widget:
device, cursor_standard=40
endif else begin
;; switch to my default cursor:
device, /cursor_crosshair
endelse
end
'WIDGET_DRAW': begin
;; deal with draw events...
end
else: ;; deal with other event types...
endcase


Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: change mouse cursor in draw widget
Next Topic: ERRPLOT using object Graphics .... ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 14:11:08 PDT 2025

Total time taken to generate the page: 0.88006 seconds