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

Home » Public Forums » archive » Putting the cursor in a field
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: Putting the cursor in a field [message #5692 is a reply to message #5520] Wed, 24 January 1996 00:00 Go to previous message
ps is currently offline  ps
Messages: 14
Registered: September 1994
Junior Member
In article <4do4ab$ndt@ratatosk.uio.no>,
steinhh@amon.uio.no (Stein Vidar Hagfors Haugan) writes:

> The TVCRS procedure can be used to move the mouse cursor anywhere,
> even outside the (possibly unmapped) currently selected draw window.
>
> The following example should demonstrate this:
>
> base = widget_base(/row)
> text = widget_text(base,xsize=100)
> dummy= widget_base(base,map=0)
> draw = widget_draw(dummy,xsize=1,ysize=1)
> widget_control,base,/realize
> widget_control,draw,get_value=window
> wset,window
> tvcrs,-200,-20,/device
> widget_control,text,/input_focus
>
> You just have to match the X,Y device coordinates to where you want the
> mouse cursor to appear.

Uuh, oh, that's a *very* dirty trick. However, I'll give it a try.
Thanks for the suggestion.

Peter


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Peter "Pit" Suetterlin http://www.kis.uni-freiburg.de/~ps
Kiepenheuer Institut fuer Sonnenphysik
Tel.: +49 761 3198-210 ps@kis.uni-freiburg.de
-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * --
Come and see the stars! http://www.kis.uni-freiburg.de/~ps/SFB
Sternfreunde Breisgau e.V.
Tel.: +49 761 73571 or 278588
____________________________________________________________ ______________
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Routine to read files in pdb-format?
Next Topic: Postscript for different paper sizes

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

Current Time: Thu Oct 09 22:33:09 PDT 2025

Total time taken to generate the page: 0.16343 seconds