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

Home » Public Forums » archive » Re: 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
Re: Place cursor programatically in draw widget? [message #68789] Thu, 03 December 2009 07:25 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
j.coenia@gmail.com wites:

> Thanks. What if I have an object graphics draw widget (graphics_level
> = 2)? Do I have to resort to some hack like placing a direct graphics
> window behind it? (Don't think that will work for my application.)

I don't know. Did you try this and find it *doesn't*
work for object graphics windows? I've always managed
to change the requirements document for things like
this. ;-)

Cheers,

David



--
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.")
Re: Place cursor programatically in draw widget? [message #68807 is a reply to message #68789] Tue, 01 December 2009 14:50 Go to previous messageGo to next message
j.coenia@gmail.com is currently offline  j.coenia@gmail.com
Messages: 36
Registered: December 2008
Member
Thanks. What if I have an object graphics draw widget (graphics_level
= 2)? Do I have to resort to some hack like placing a direct graphics
window behind it? (Don't think that will work for my application.)
Re: Place cursor programatically in draw widget? [message #68809 is a reply to message #68807] Tue, 01 December 2009 12:51 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
j.coenia@gmail.com wites:

>
> 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...

Try TVCRS after making the draw widget the current graphics window.

Cheers,

David



--
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.")
Re: Place cursor programatically in draw widget? [message #69102 is a reply to message #68789] Mon, 21 December 2009 10:54 Go to previous message
j.coenia@gmail.com is currently offline  j.coenia@gmail.com
Messages: 36
Registered: December 2008
Member
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. JC
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: A better way to find a dip (local minimum with certain conditions)
Next Topic: Place cursor programatically in draw widget?

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

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

Total time taken to generate the page: 0.00501 seconds