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

Home » Public Forums » archive » centering dialog_pickfile, printersetup, etc...
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: centering dialog_pickfile, printersetup, etc... [message #61328 is a reply to message #61231] Tue, 15 July 2008 07:43 Go to previous messageGo to previous message
edward.s.meinel@aero. is currently offline  edward.s.meinel@aero.
Messages: 52
Registered: February 2005
Member
On Jul 14, 7:15 pm, David Fanning <n...@dfanning.com> wrote:
> Andrew Cool writes:
>> Interesting! The first time I invoke x=3DDialog_Pickfile() from the
>> command line, it appears in the top left
>> corner of the screen. (XP, IDL v6.4)
>
>> The second time, and subsequent times, I invoke x=3DDialog_Pickfile(),
>> it appears centered on the screen!!
>
>> Dialog_Pickfile must contain some internal smarts to do with centering
>> itself. Perhaps there is an undocumented
>> keyword to force centering on the first call?
>
> But, clearly, someone (or something) is doing the centering.
> Why can't they expose that mechanism so we can put the damn
> thing where we want it?
>
> 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.")

I got around the problem by calling Dialog_Pickfile through an empty
parent widget. I can get it close enough to the screen center that it
isn't too bad. I just wish the size could be specified -- I get real
tired of resizing the dialog when folders contain long filenames...

Ed
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using IDL to make a signal filter
Next Topic: Re: Reset fonts / Problem with colorbuttonbitmap.pro from D. Fanning

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

Current Time: Fri Oct 10 07:07:45 PDT 2025

Total time taken to generate the page: 0.32037 seconds