Re: Fixed size window
- From: A R Hummaida <hummaida cs man ac uk>
- Cc: Andrea Bergia <andreabergia yahoo it>, gtk-list <gtk-list gnome org>
- Subject: Re: Fixed size window
- Date: Wed, 27 Feb 2002 20:19:06 +0000
oops
read here http://developer.gnome.org/doc/API/gtk/gtkwindow.html
A R Hummaida wrote:
this is from API :). read more there under GtkWindow
void gtk_window_set_policy (GtkWindow
<cid:part1.09050803.06010001@netscape.com> *window,
gint
<file:///home/hummaia9/gtkref/tar_files/glib/glib-basic-types.html#GINT>
allow_shrink,
gint
<file:///home/hummaia9/gtkref/tar_files/glib/glib-basic-types.html#GINT>
allow_grow,
gint
<file:///home/hummaia9/gtkref/tar_files/glib/glib-basic-types.html#GINT>
auto_shrink);
Changes how a toplevel window deals with its size request and user
resize attempts. There are really only two reasonable ways to call
this function:
1.
gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE)
means that the window is user-resizable.
2.
gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, TRUE)
means that the window's size is program-controlled, and should
simply match the current size request of the window's children.
Andrea Bergia wrote:
Hi, I have a simple questions about GTK: how can I lock the size of a
window? I want that the the user cannot resize the windows, is there a
simple way to do this?
Thanks. Andrea.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]