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

Home » Public Forums » archive » controlling dialog widget size
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
controlling dialog widget size [message #30476] Wed, 01 May 2002 10:42 Go to next message
Virginia Rogers is currently offline  Virginia Rogers
Messages: 4
Registered: July 2000
Junior Member
Hello,

Is there a way to ensure that my modal dialog widget will fit on any display
screen? I have a modal dialog which is arranged in a column. On most displays,
the whole widget fits on the screen. But on some smaller displays, the widget
is too tall to fit on the screen, and thus, the "OK" button at the bottom of the
widget cannot be selected.

I realize that I could arrange the widget into two columns so that it is shorter
and wider. But what I'm really interested in is a general way of ensuring that
a dialog will fit on any screen. Should I check the screen size and check the
size of the top level base and rearange the dialog if necessary? Can you add a
scroll bar to a dialog? Any other ideas?

Thanks!
Virginia Rogers
Re: controlling dialog widget size [message #30566 is a reply to message #30476] Wed, 01 May 2002 14:09 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Virginia Rogers wrote:

> James, Thanks for the advice. I didn't realize the base widget had a scroll bar
> option. However, I just looked up the documentation, and I guess the /scroll
> and /modal flags don't work together!

Sorry for giving you bad advice! The manual I looked it up in is for IDL
3.0, and doesn't even mention the /modal flag. I should have looked it
up in the online help, which is more up-to-date. Better yet, I should
have tested it before saying anything.

One alternative would be to apply the /scroll option to a sub-base of
the modal base. Obviously, that will make the widget a little more
complicated.

However, I still stand by my third piece of advice: any really large
widget might benefit by being broken up into sub-widgets.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: controlling dialog widget size
Next Topic: bit operations

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

Current Time: Wed Oct 08 17:09:10 PDT 2025

Total time taken to generate the page: 0.00917 seconds