Re: Upgraded tabbed_pane_widget
"Christian Boulanger" <[email protected]> Sat, 27 Sep 2003 09:55:22 +0200 (MEST)
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Message-ID | <[email protected]> |
Thanks Michael, that will help. I will report to the list once I could
implement it.
CB.
> For the archives...
>
> Christian Boulanger wrote:
>
> > Hi Michael,
> >
> > Can you help me with the tabbed_pane_widget? I am trying to generate it
> > programmatically,
> > With no success so far. I tried
>
> I responded yesterday to this very question in a reply to the
> "Programatically constructing..." thread. I'll assume your email is a
> little delayed.
>
> For the most part I think already answered everything you need to do to
> do this programatically. The only thing I did is I didn't pass a DOM
> Node to the factory function. If you don't pass a DOM Node, you'll have
> to insert the widget DOM Node into the HTML Document in the location
> where you want the tabbed pane to appear.
>
> > tabbed_pane = new NW_WIDGET_tabbed_pane(right_pane,"100%","100%");
> Don't pass percentages. I don't believe the widget strips off non digit
> characters. I think it'll confuse the constructor logic. This should
> really be documented or fixed.
>
> > var startTab = new NW_WIDGET_tab_ds("Introduction", "start.html");
> > startTab.getFromURL();
> This part is correct.
>
> > tabbed_pane.createTab(startTab);
> This is not needed. Just addTab(startTab) and your tab will be added.
>
> > var tabNode = document.createElement("div");
> > var tabd = new NW_WIDGET_tab_ds("name", null, tabNode);
> > tabbed_pane.addTab(tabd);
> >
> > But nothing shows up. How do I have to do it? Maybe you can post the
> > solution to the list.
>
> The only thing I left out of the last email is that it appears that you
> need to call the init() method on the tabbed_pane for it to initialize
> before it will display anything.
>
> Try the following:
>
> var tabbed_pane = NW_WIDGET_FACTORY_tabbed_pane(right_pane,"500","300");
> var startTab = new NW_WIDGET_tab_ds("Introduction", "start.html");
> startTab.getFromURL();
> tabbed_pane.add(startTab);
> tabbed_pane.init();
>
>
> After looking at this code again there's actually some stuff in this
> widget that should probably be cleaned up some. When I get some time
> I'll revisit this code to clean it up and develop a more comprehensive
> test page for it so there's some more examples on how to use it
> properly. Don't expect this to happen within the next 2-3 weeks though.
>
>
> --Michael
>
>
>
>
>
> _______________________________________________
> The netWindows developers list: [email protected]
> http://netwindows.org/mailman/listinfo/devel_netwindows.org
>
--
NEU FÃR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-GruÃ, GMX FotoService
Jetzt kostenlos anmelden unter http://www.gmx.net
+++ GMX - die erste Adresse für Mail, Message, More! +++
_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org