On Tue, Jun 8, 2010 at 11:09 PM, Matthew Allen <l...@sydneyband.com.au> wrote: > ---------- Original Message ---------- > To: Matthew Allen (l...@sydneyband.com.au) > From: Tristan Van Berkom (t...@gnome.org) > Subject: Re: Top down layout > Date: 9/6/2010 12:55:44p > >> On Tue, Jun 8, 2010 at 10:36 PM, Matthew Allen <l...@sydneyband.com.au> >> >> wrote: This sort of behaviour might not be possible with GTK. But at >> >> least I thought I'd ask. >> > >> > Actually whats the first signal generated when the user attempts to >> > resize the GtkWindow? >> > >> > I should hook that and stop it get limited to the requested size... then >> > my window is free to resize arbitrarily, and I can sort out the layout >> > from there. Is there some way of seeing the signals being fired? >> >> Do you need to let the window be smaller than the space that its >> children occupy ? > > Yes. The GtkWindow should not be limited to the contents at all, thats what I > want. > >> You could just put everything in a scrolled window and hide the >> scrollbars if thats > > An interesting idea... I might have a look at the implementation details of > the scrollable area widget. > > I'm currently reading through gdkevents-win32.c in an attempt to find where > it enforces the minimum window size. I was hoping that somewhere in the > WM_SIZING handler it would get the current allocation and set the RECT > pointed to by lParam to that size. Or something like that, but so far I > haven't got my head around it. > > Or maybe it's happening in WM_WINDOWPOSCHANGING?
For a clearer answer on that particularly, GtkWindow size is "constrained" by the minimum size of its contents, scrollable area widgets exist to allow encapsulation of larger areas that dont fit on screen. I would recommend trying to use the GTK+ api in the regular way instead of looking through internals and trying to force the window to misbehave. I still fail to see the point, what is supposed to be in the UI ? buttons labels text areas treeviews and notebooks and menubars and normal stuff ? is it a big canvas that you need to scroll around in ? Rather, what does an interface look like when you shrink it smaller than its contents ? Do you just let buttons clip off to the right and the bottom ? > > GDK_NOTE is just debugging right? Right. > -- > Matthew Allen > http://www.memecode.com > > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list