Upgraded tabbed_pane_widget

Michael Flanagan <[email protected]>
Newsgroups gmane.comp.windows.devel.netwindows
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There's a new and improved tabbed_pane_widget in cvs head.

In the course of using it for our own internal app, we came upon some
deficiencies in the current implementation.

For instance, because of the way we do real time population of data into
html pages w/o a visible screen refresh, we found that the way that the
tabbed_pane_widget stored different tbody nodes and swapped them
into/outof the dom during runtime wasn't working for us.

We refactored it to use divs instead that simply get hidden using CSS.
This way you have access to the dom nodes on any of the panes any time
you want them using a document.getElemenById() call. This was not the
case with the old tabbed_pane_widget.

We also enhanced it so that you can now disable specific tabs. If a tab
is disabed and you click on it, it won't switch to that tab. In addition
to a disableTab() method there is a enabledTab(), disableAllTabs(),
enableAllTabs(), getCurrentTabContent(), setMouseOver(), & setMouseOut().


Also, it was not possible to use CSS in this widget. You can now do so
using the following class names:
TabbedPane-container-div
TabbedPane-table
TabbedPane-content-row
TabbedPane-content-cell
TabbedPane-content-div
TabbedPane-tab
"TabbedPane-content-div-" + this.name //where this.name is taken in as a
param in an inline ctor.

The funny thing is, after making all of these changes we decided we
didn't like the usability of the tabs and have now moved to using the
split pane (with a few mods).

- --Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/RXOSFEAqzmmooIMRAtKtAJ4wEs6Tcz485bDHiVcUUPqjz7+QYQCZAYbi
SZsMOMHeY6Upu0QqSIHgi2k=
=rrDp
-----END PGP SIGNATURE-----


_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.