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

Home » Public Forums » archive » Dialog_Pickfile Whack-a-Mole
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: Dialog_Pickfile Whack-a-Mole [message #81688 is a reply to message #81626] Mon, 08 October 2012 03:44 Go to previous messageGo to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Fri, 5 Oct 2012 07:23:47 -0600, David Fanning wrote:

[...]

> This letter is from "Vijay" who writes in to complain about
> his inability to position Dialog_Pickfile, which always
> appears in the upper-left corner of his display, to his
> mind the least advantageous spot on the whole computer.
> I commiserate, because I have been complaining about this
> lack of positioning control for about as long as
> Dialog_Pickfile has been with us, to no apparent effect.
>
> Dialog_Pickfile actually only appears in the upper left
> the first time it's used. Thereafter, on my machine,
> anyway, it seems to come up in the last place you
> left it. (I wish to God it could remember the last
> directory, too, but that's why I use cgPickfile instead
> of Dialog_Pickfile.)
>
This morning I had an idea to create a workaround for the lack of the
position parameters. When dialog_pickfile() has a parent, specified by
the dialog_parent keyword, the start position is identical with that
of the parent. (This is my observation, if the parent is a top level
base.) The upper-left of dialog_pickfile matches with the upper-left
of the parent. The parent can be made unvisible and everything looks
fine:

tlb_wid=widget_base(xoffset=300,yoffset=200)
widget_control,tlb_wid,map=0
widget_control,tlb_wid,/realize
help,dialog_pickfile(dialog_parent=tlb_wid)
widget_control,tlb_wid,/destroy

Of cause, this way of positioning works only on the first time calling
dialog_pickfile in the IDL session, since dialog_pickfile remembers
its last position. However dialog_pickfile is gone from the upper-left
corner.

Note that dialog_pickfile also remembers its position, after a full
reset of the IDL session. Be careful when testing. :-)


> This letter strikes a chord with me because I have
> been frustrated with Dialog_Pickfile (via cgPickfile)
> for a couple of weeks now, too. Roughly corresponding
> to when I started working more regularly with IDL 8.x.
>
[...]

I am happy, saying not to have this complaints (at this time).
!version={ x86 Win32 Windows Microsoft Windows 8.0.1 Oct 5 2010
32 64}
widget_info(/version)={ Windows Win32 5.1}

Cheers, Heinz
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: cd to nonexistent directory and up again
Next Topic: exelisvis.com documentation center

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

Current Time: Fri Oct 10 18:06:27 PDT 2025

Total time taken to generate the page: 0.95851 seconds