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

Home » Public Forums » archive » Place cursor programatically in draw widget?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Place cursor programatically in draw widget? [message #68810] Tue, 01 December 2009 12:25 Go to next message
j.coenia@gmail.com is currently offline  j.coenia@gmail.com
Messages: 36
Registered: December 2008
Member
Is there any way yet to programmatically place a cursor in a draw
widget?

Something like WIDGET_CONTROL, drawID, SET_CURSOR_POSITION = [100,100]
would be great...

Thanks.
Re: Place cursor programatically in draw widget? [message #69100 is a reply to message #68810] Mon, 21 December 2009 11:52 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
j.coenia@gmail.com wites:

> Yeah, TVCRS won't work for object graphics windows. One hack is to
> use a 1x1 WIDGET_BASE containing 1x1 WIDGET_DRAW, realized on top of
> the object graphics window offset to where you want the cursor to be,
> then TVCRS the cursor onto that tiny window before destroying it (and
> possibly re-setting focus). It works well, actually

Really!? I would have thought that solution too
ugly to even comtemplate. :-)

Cheers,

David

P.S. I might try adding that as a method to one
of my draw widget objects.



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Place cursor programatically in draw widget?
Next Topic: all membars comming here an super girls stils

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

Current Time: Wed Oct 08 15:48:17 PDT 2025

Total time taken to generate the page: 0.07657 seconds