Re: Preventing drawing area resizing



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le Vendredi 4 Octobre 2002 18:44, Olexiy Avramchenko a écrit :
Bryan Brown wrote:
Using gtk 1.2, how does one prevent the user from resizing a drawing area?

Using "gtk_widget_set_usize" I can set the minimum size, but I'd like to
be able set either the maximum size or prevent resizing at all.

You can pack your drawing area into GtkAlignment container widget.
Use xscale=yscale=0 to prevent resizing.

*Note* you can receive "configure_event" events for drawing area ever
it width and height remains unchanged. This is the feature of both
GtkAlignment
and GtkDrawingArea (looks strange, doesnt it ?;).
Not really, because a first notify is useful. They didn't add an interne flag 
"First notify = true", perhaps for memory reason (and others, like 
complexity... ).

please forgive my poor english from France.
- -- 
A+

jmh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD4DBQE9neK1YilIC5+/QnYRAsiUAJ9RNXeUwbrmJwdjX4HY2qrtTFvF3gCY76Jv
B5HdBBO4qWOUtccZ3fB30Q==
=sCE2
-----END PGP SIGNATURE-----




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