Re: problem with designing my window
- From: Dimitri Holz <d holz innoventis de>
- To: Florent Blanchon <florent blanchon gmail com>, gtkmm-list gnome org
- Subject: Re: problem with designing my window
- Date: Thu, 22 Apr 2010 09:14:39 +0200
I can't find a "real" function of Gtk::Window to disable maximizing, but it is easy posible to do with following calls:
set_resisable(false);
set_type_hints(Gdk::WINDOW_TYPE_HINT_DIALOG); // or another hint types -
is an enum
After this call, the window hasn't maximizable button and resizing is
disabled.
And when you would like to do resizable window but with certain max &
min size, it is possible with:
set_size_request(int length,int width); // Setting the minimum size of
Window and with:
Gdk::Geometry geometry;
geometry.max_height = 900;
geometry.max_width = 500;
set_geometry_hints(WindowObject, geometry, Gdk::HINT_MAX_SIZE);
you can set the maximum size of the window. After that the window isn't
maximizable too.
> ------------------------------------------------------------------------
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]