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 #61420 is a reply to message #61326] Tue, 15 July 2008 12:03 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 15, 10:55 am, David Fanning <n...@dfanning.com> wrote:
> edward.s.mei...@aero.org writes:
>> 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...
>
> How does that work? It doesn't seem to do anything at all for me.
>
>   base = Widget_Base()
>   filename = Dialog_Pickfile(DIALOG_PARENT=base)
>   CENTER_TLB, base
>
> 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.")

First, call CENTERTLB, base instead of CENTER_TLB, base

Then, you have to center and realize the parent base before calling
DIALOG_PICKFILE:

base = Widget_Base()
CENTERTLB, base
WIDGET_CONTROL, base, /REALIZE
filename = Dialog_Pickfile(DIALOG_PARENT=base)

I tried various permutations of the widget calls, and that is the only
one that sort-of worked. I'll let one of the other Masters try and
explain why...

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: Sat Oct 11 10:14:36 PDT 2025

Total time taken to generate the page: 0.72040 seconds