Re: How to use XControls?
Ok a short term solution is I have modified Autosize so I pass the
window id that the cotrol is on to Autosize manually. And it works
great,
On Thu, 27 Jan 2005 18:41:04 +1100, Patrick Barnes <mrtrick at gmail.com> wrote:
>
> On Thu, 27 Jan 2005 17:52:45 +1100, Tony Steward <tony.steward at gmail.com>
> wrote:
> >
> > For some reason when Autosize gets the parent id it gets the Main
> > window not the child window that the item to be attached is on.
> >
> > My window has a three way split. 1st split is horizontal then top pane
> > is split vertically. When is resize the horizontal split it triggers
> > the onwinresize event in Autosize but when I move the vertical slider
> > it does not.
>
> Hmmm, I'm not too familiar with Xcontrols, although I've checked out
> the demos and it looks impressive.
>
> The way that Autosize figures out which resizes it should be trapping
> is just inside the
> attach_control() procedure:
> }}}
<eucode>
> --Find the window this control is in, if none then fail.
> parentwin = findParentWindow(id)
> </eucode>
{{{
>
> So, technically, it's win32lib's fault.
> If there's a way to get the parent (not necissarily a window) of the
> control, then that'd be a simple drop-in replacement of that line,
> that would work with Xcontrols, with an added bonus of making Autosize
> automatically heirarchical (So that you could use Autosize to manage
> controls relative to a 'group' or a 'tab control'.)
>
> > Hope this helps you to help me, which in turn may help you. (wow)
>
> Sounds like it could be helpful to me, cause it'd make Autosize even better.
> Should make things fine for Xcontrols, as long as the custom panes
> still generate onResize events.
>
> --
> MrTrick
>
>
--
Regards
Tony Steward
www.locksdownunder.com
IF IT IS TO BE IT IS UP TO ME!
|
Not Categorized, Please Help
|
|