[Gtk-sharp-list] Cannot constrain resize of contained widget, why?

simozzer SimonMoscrop at hotmail.com
Mon Apr 20 11:54:27 EDT 2009


Hi folks,

I am trying to build a (very) simple app using mono and Gtk-sharp which has
the following document outline:

MainWindow
    hpaned1
        GtkScrolledWindow 
            textview1
        GtkScrolledWindow1
            textview2

This Works:
=========
To prevent the user from resizing the main form to make it too small i have
hooked into the OnSizeRequested event. When I do this the event is called
and I can intercept the resize. (So far so good)


This does not work:
==============
I would also like to prevent the user from resizing the left textview
(textview1) - specifically I do not want the user to make this area too
small. To intercept the resize of the textview I try hooking some code up to
the textview1SizeRequested event. When I do this my resize handling code is
never called. Can anyone tell me why this is and what I need to do to get
this event to fire in my code?

Thanks very much

Si









-- 
View this message in context: http://www.nabble.com/Cannot-constrain-resize-of-contained-widget%2C-why--tp23139475p23139475.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.



More information about the Gtk-sharp-list mailing list