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

Home » Public Forums » archive » IDL7.0 Workbench: configuring cursor focus
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
IDL7.0 Workbench: configuring cursor focus [message #59391] Wed, 19 March 2008 09:39 Go to next message
K.I.W.I. is currently offline  K.I.W.I.
Messages: 4
Registered: March 2008
Junior Member
I'm still re-learning to use IDL7.0 and am constantly fighting it.

Particularly the very annoying behaviour (I feel) that is the
workbench always restoring the editor cursor focus back to where ever
the code was halted.

For example, I've run a 100 line piece of code to a STOP at the end. I
notice I want to tinker about with line 20, so I go there to line 20,
edit it and decide to drag-drop this new line onto the command-line.
Well, the workbench then snaps the editor cursor back down to the END
at line 99. I'd really like to turn this behaviour off.

Also, I notice if one drops another file into the workbench, the focus
won't go to this new editor window. Is this configurable?

Surely, stuff like this is ECLIPSE configurable?

Ah, Peter
Re: IDL7.0 Workbench: configuring cursor focus [message #60030 is a reply to message #59391] Fri, 25 April 2008 14:40 Go to previous messageGo to next message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Apr 25, 4:17 pm, David Fanning <n...@dfanning.com> wrote:

> I do have my windows on a second monitor, however.

Well that's not fair... I guess the original poster could just shrink
his Workbench window and move the Graphics windows over a little
before he runs the program, too. ;)
Re: IDL7.0 Workbench: configuring cursor focus [message #60031 is a reply to message #59391] Fri, 25 April 2008 14:17 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
K.I.W.I. writes:

> Sure, that'll permit the window contents to draw the first time.
> But try to go between the command line and the window.
> Hmm, perhaps it's the backing store config? I'm on Windoze.

Humm. Well, I'm on Windoze, too, and it seems to work
every time for me:

PRO look_at_path
WINDOW,0
pt_0=10
pt_N=20
f=INDGEN(1000)
REPEAT BEGIN
PLOT,f[pt_0:pt_N]
READ, PROMPT='Enter new pt_0 & pt_N plot extents : ',pt_0,pt_N
wait, 0.001
ENDREP UNTIL(pt_0 EQ -99)

STOP
END

I do have my windows on a second monitor, however.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: IDL7.0 Workbench: configuring cursor focus [message #60032 is a reply to message #59391] Fri, 25 April 2008 14:06 Go to previous messageGo to next message
K.I.W.I. is currently offline  K.I.W.I.
Messages: 4
Registered: March 2008
Junior Member
Sure, that'll permit the window contents to draw the first time.
But try to go between the command line and the window.
Hmm, perhaps it's the backing store config? I'm on Windoze.

Peter
Re: IDL7.0 Workbench: configuring cursor focus [message #60033 is a reply to message #59391] Fri, 25 April 2008 13:29 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
K.I.W.I. writes:

> To add to my frustration with ECLIPSE and "focus"...
>
> Try the following quick-n-dirty code,
>
>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>
> PRO look_at_path
> WINDOW,0
> pt_0=10
> pt_N=20
> f=INDGEN(1000)
> REPEAT BEGIN
> PLOT,f[pt_0:pt_N]
> READ, PROMPT='Enter new pt_0 & pt_N plot extents : ',pt_0,pt_N
> ENDREP UNTIL(pt_0 EQ -99)
>
> STOP
> END
>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> I cannot access/look at the plot window because Eclipse is locked into
> the READ statement!
>
> Anybody confirm this? Work around?

Believe it or not, the work-around is to add a Wait, 0.001 statement
after the READ command. I thought this was too esoteric to write
an article about, but I guess I will.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: IDL7.0 Workbench: configuring cursor focus [message #60036 is a reply to message #59391] Fri, 25 April 2008 12:35 Go to previous messageGo to next message
K.I.W.I. is currently offline  K.I.W.I.
Messages: 4
Registered: March 2008
Junior Member
To add to my frustration with ECLIPSE and "focus"...

Try the following quick-n-dirty code,

>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>
PRO look_at_path
WINDOW,0
pt_0=10
pt_N=20
f=INDGEN(1000)
REPEAT BEGIN
PLOT,f[pt_0:pt_N]
READ, PROMPT='Enter new pt_0 & pt_N plot extents : ',pt_0,pt_N
ENDREP UNTIL(pt_0 EQ -99)

STOP
END
>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>

I cannot access/look at the plot window because Eclipse is locked into
the READ statement!

Anybody confirm this? Work around?

Sigh, Peter
Re: IDL7.0 Workbench: configuring cursor focus [message #60138 is a reply to message #59391] Mon, 28 April 2008 07:45 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
K.I.W.I. writes:

> Hmm, regardless that the window contents don't refresh properly (for
> me anyway). I guess I'm pointing out the behaviour that unlike IDLDE,
> the Eclipse environment doesn't permit me to type into the command
> window with a graphic window in the fore. That was prolly a quirk of
> IDLDE I was exploiting. The above program under IDLDE would allow one
> to respond, ie type away, without pushing the plot window away.

This is a well-known problem. I haven't heard that it has
been solved yet, so who knows. It is a HUGE headache in
a teaching environment, I can tell you. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: IDL7.0 Workbench: configuring cursor focus [message #60139 is a reply to message #60030] Mon, 28 April 2008 07:41 Go to previous message
K.I.W.I. is currently offline  K.I.W.I.
Messages: 4
Registered: March 2008
Junior Member
On Apr 25, 5:40 pm, Vince Hradil <hrad...@yahoo.com> wrote:
> On Apr 25, 4:17 pm, David Fanning <n...@dfanning.com> wrote:
>
>> I do have my windows on a second monitor, however.
>
> Well that's not fair...  I guess the original poster could just shrink
> his Workbench window and move the Graphics windows over a little
> before he runs the program, too.  ;)

Hmm, regardless that the window contents don't refresh properly (for
me anyway). I guess I'm pointing out the behaviour that unlike IDLDE,
the Eclipse environment doesn't permit me to type into the command
window with a graphic window in the fore. That was prolly a quirk of
IDLDE I was exploiting. The above program under IDLDE would allow one
to respond, ie type away, without pushing the plot window away.

Big picture-wise, again, I ask the community if there are other
Eclipse settings one could tweak, to say config focus behaviour?
The editor's cursor insistence to snapping to the program halt
location is really cramping my style. I'm more of a data hacker than a
straight programmer.

Cheers, Peter
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: idlanroigroup masking weirdness
Next Topic: Re: problem with builtin restore

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

Current Time: Wed Oct 08 13:41:45 PDT 2025

Total time taken to generate the page: 0.00931 seconds