Re: How to use XControls?
- Posted by Patrick Barnes <mrtrick at gmail.com> Jan 28, 2005
- 478 views
On Thu, 27 Jan 2005 20:55:29 -0800, Derek Parnell <guest at rapideuphoria.com> wrote: > Patrick Barnes wrote: > [snip] > > > Specifically checking for TabItem seems like a > > bit of a kludge, I don't suppose there's any way to test whether a > > control needs to use the grandparent rather than parent? > > I think that Win32lib should be smart enough to know that if you try to > resize a TabItem that the owning TabControl is what really should be resized. > I'll think about making this change. Well, I'm not particularly concerned about that... When you call 'attach_control' in Autosize, it will (in the new version, at least) resize itself relative to it's parent - listening for when the parent changes size. So I'm talking about the items inside the TabItem, not the TabItem itself. The problem is that the TabItem doesn't receive any w32HResize events, even though visually you could say it changes size. Would you consider triggering resize events in a TabItem when the parent TabControl is resized? -- MrTrick