Re: [gtk-list] Resizing drawing area immediately



On Wed, Sep 16, 1998 at 01:22:32PM -0400, Conrad Steenberg wrote:
> I hope someone can help me on this:
> 
> I have a drawing area widget inside a scrolled window widget. If The main
> window (or widget) containing the scrolled window is resized, the drawing
> area widget also gets resized.
> 
> Does anyone know how to prevent this resizing, or more accurately,
> override the size parameters widget->allocation.[width,height]? 
> 
> I currently have a signal handler connected to the configure event of the
> drawing area where the size of widget is changed by gtk_drawing_area_size.
> But this does not work immediately, only after the widget is redrawn. 

derive a widget from drawing area .. and override the size_request
size_allocate methods 

George

-- 
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
  The following implements RSA in perl and is illegal to export from the US:

          #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
          $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
          lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)



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