Re: Trouble running IDL3 widget programme on IDL4/IDL5 [message #12902] |
Mon, 14 September 1998 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Darren Kelly (kelly@mail.desy.de) writes:
> I wrote a widget application that ran finw under IDL3. Under IDL4 and
> IDL5 it brings up the main form, some of the widgets across the top
> are active, but the other never appear. If I click my QUIT button,
> the application closes properly, so I know it registers properly.
>
> I wrote to ask IDL and after I was told (after three mails) to
> read IDL4.01 Help "A note about widget Sizing", which didn't help me.
> Whether that's because I'm stupid or not doesn't worry too much,
> I just want the application to run (again). Be very glad for some
> help. Here's the code for generating the widgets, hope it isn't too
> much.
Well, it's too much, but we'll forgive you. :-)
I don't honestly remember all the way back to IDL 3,
and I don't have IDL 4 around any more, but I am quite
sure the note said to NOT use both the ROW (or COLUMN)
keyword at the same time you used XSIZE and YSIZE keywords
with base widgets.
As a quick test, I just removed all the XSIZE and YSIZE
keywords from base widgets that also had either a ROW or
COLUMN keyword set. The application now at least lays
out better, if not entirely on the display. :-(
But it wouldn't take too much more work, probably, to sort
it out. I would spend just a few minutes thinking about
using base widgets to organize the elements of your interface.
Cheers,
David
----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|