Re: Restrict user maximising the size of the screen



hi
How would I restrict the user from maximising the screen through either dragging it or using the maximising 
button at the top of the screen?

        You could use the function gtk_window_set_policy() which has the following definition:
gtk_window_set_policy (GtkWindow *window,gint allow_shrink,gint allow_grow,gint auto_shrink);

You have to pass "FALSE" to the parameter allow_grow in case u dont want to allow the users to increas the 
window size and "TRUE" otherwise.

regards,
partha


_____________
parthasarathi s a
Associate Engineer - e-Security
Odyssey Techonologies Limited.

e-mail: parthasarathi at odysseytec dot com
        parthasarathi at mail dot cyberneme dot com
___________________ 
Live to Win. Dare to Lose.
___________________



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