-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dirk,

That's basically what the tab skin looked like before I started modifying it. What I'm trying to do is force a single instance of a TabBar to have a different skin. According to the docs this is not possible, but I figured what I'd ho instead is create a new class (InvertedTabBar) which extends TabBar and try to create a skin for this new class.

Is there a better way to do that?

Thanks,
Seth


On Feb 18, 2005, at 03:30, Dirk Eismann wrote:


Maybe this one helps:

http://www.mxug.de/flex/archives/2005/02/more_tab_skinni.cfm

Dirk.

-----Original Message-----
From: Seth Voltz [mailto:[EMAIL PROTECTED]
Sent: Friday, February 18, 2005 8:26 AM
To: Flex Coders
Subject: [flexcoders] Mare on inverted tabs


Ladies and Gents,

So I've just picked up the inverted (upside down) tabs thing again and
began doing inspections of the TabBar object for possible leads. The
best I could find is a variable (probably private) called tabSkin which
was set to "mx.skins.TabSkin". I created a new MXML file called
InvertedTabSkin.mxml and basically just made it a wrapper for mx:TabBar
with nothing but a script tag inside with the following code:

import InvertedTabSkin;
function doInit ( ) {
this.tabSkin = "InvertedTabSkin";
}

The doInit() function is triggered by the initialize event in the root
element.

When I set this variable something happens to the TabBar created with
the InvertedTabBar class... all I get is the text of the tab and none of
the skin. The skin file, InvertedTabSkin.as has a few modifications from
a version that worked on all TabBars:


class InvertedTabSkin extends RectBorder {
static var symbolOwner:Object = InvertedTabSkin;
...

instead of

class InvertedTabSkin extends RectBorder {
static var symbolName:String = "mx.skins.TabSkin";
...

and

static function classConstruct():Boolean
_global.skinRegistry["InvertedTabSkin"] = true;
...

instead of

static function classConstruct():Boolean {
_global.skinRegistry["mx.skins.TabSkin"] = true;
...

Any ideas on where to go from here, or am I on a completely wrong track?

Thanks,
Seth



Yahoo! Groups Links






-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCFksJsnBTlzgQQ28RArpvAKCn4d7XXA74b033V+zar6fiyv8ufACgmr4l
QlvUHGjUVL1tHX2VaNdjI/s=
=um3f
-----END PGP SIGNATURE-----





Reply via email to