Re: dialogs: shrink to fit? [solved]



Hi
In case somebody else needs to shrink a dialog to fit, here's what i do
whenever i change the visibility of the dialog's widgets:
    Gtk::Requisition req = get_vbox()->size_request();
    resize(req.width, req.height);

jody

On Thu, Jun 12, 2008 at 1:29 PM, jody <jody xha gmail com> wrote:
> Hi
> I have dialog which can be expanded to show more input widgets by the
> press of a button ("advanced").
> Those "advanced" widgets are initially invisible, and when the button
> is pressed they are shown, and
> the dialog grows correspondingly.
> But when i hide the "advanced" widgets again, the dialog retains its large size.
>
> Is there a way to make the dialog shrink to fit, i.e. make it take on
> the minimum size such that all visible widgets can be seen?
>
> Thank you
>  Jody
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]