Re: size requests/allocations of own widgets
- From: Helmethead <hoshem mel comcen com au>
- To: gtk-list gnome org
- Subject: Re: size requests/allocations of own widgets
- Date: Sat, 27 Jan 2001 02:27:25 +1100
On Fri, Jan 26, 2001 at 05:21:52PM +0100, Ronald Bultje wrote:
> Hello there,
>
> I have made my own simple widget, it works, but one thing I don't like is
> that if I request a size (width/height) and one of them gets bigger, the
> other doesn't. Now, I really want the ration width:height to be 4:3. My
> simple solution was to just draw it bigger in the function
> gtk_<widget)_expose();, but that doesn't work. The image gets bigger but
> the allocated space doesn't, so the widgets below it are layed over my own.
> Does anyone know how to make a "fixed" width/height ration?
>
> Ronald
>
I been looking at this, and I see GtkAspectFrame. Wouldn't it be better design to have a GtkAspect subclassing GtkBin and put a GtkFrame in that if so desired? Or is there some other way ur meant to do what he wants
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]