Re: Split Pane question
Alex Russell <[email protected]>
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Organization | netWindows.org |
| Message-ID | <[email protected]> |
On Monday 18 August 2003 10:53, Dee Gould wrote:
> I'm looking at utilizing the split pane quite extensively
This code is going to see a major overhaul in the next week. MDA and I were
talking a bit about this last night, and its beahvior is currently far too
eratic for production use. Christian's problems with it highlight some issues
I've been aware of for a little while, and I've finally decided that using
relative positioning and trying to let the browser "do the right thing" isn't
going to work. This widget _needs_ to be solid and functional, as it should
be the kind of thing you can rely on to build interfaces (and indeed, other
widgets).
I don't anticipate that the ctor syntax will change (our object hierarchy
finally pays off!), but expect CVS to go unstable for this widget for a
little while. I know it's a PITA, but I'll try to keep things at least
working as well as they are now while I develop, and I'll let you know when
it's safe to re-sync to CVS. Sorry for the upheaval.
> but am having problems understanding how to create one. I would prefer to
> not have to load the content as in your example page ( which uses
> __env__.addToPageQueue ), but rather have something like the following
> in my html page:
>
> <div nwAppId="nwSplitPane" nwType="split_pane" nwControlName="nwSplitPane">
> <div id="leftPane" nwType="pane" >
> ..... put html content here for the left pane ....
> </div>
> <div> id="rightPane" nwType="pane">
> .... put html content here for the right pane ....
> </div>
> </div>
>
> From looking at the .js file for the split_pane_widget, it looks like
> it can be done, but I'm just a little confused on how to do it. Any
> help would be greatly appreciated!
Your example should work with minor modification, as the inline ctor already
handles child content if the url="..." parameter is not set on the pane
element and parseContent="true" is set. Using that, your example would
become:
<div nwAppId="nwSplitPane" nwType="split_pane" nwControlName="nwSplitPane">
<div id="leftPane" nwType="pane" parseContent="true">
..... put html content here for the left pane ....
</div>
<div> id="rightPane" nwType="pane" parseContent="true">
.... put html content here for the right pane ....
</div>
</div>
Let me know if you have any problems with it (aside from the funky dragging
and spacing behavior Christian has reported).
--
Alex Russell
[email protected]
[email protected]
_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org