Yeah, I’d prefer people to subclass HRule and set tabEnabled=false in something like commitProperties() (makesure you call super.commitProperties() in there).  Manipulating the prototype is not what we push in the Flex world.

 

Matt

 


From: JesterXL [mailto:[EMAIL PROTECTED]
Sent: Monday, March 14, 20054:01 PM
To: [email protected]
Subject: Re: [flexcoders] HRule tabEnabled?

 

Bahaha!  You used prototype... I SAW YOU!

----- Original Message -----
From: "Manish Jethani" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, March 14, 2005 8:07 AM
Subject: Re: [flexcoders] HRule tabEnabled?



On Sun, 13 Mar 2005 18:21:57 -0500, JesterXL <[EMAIL PROTECTED]>
wrote:

> Is there a way to have this tabEnabled=false by default?  Seems weird to
> be
> able to tab to an HRule...

I wonder why it inherits from UIComponent.  Anyway, I found this the
best option:

  initialize="mx.controls.HRule.prototype.tabEnabled = false"

:)

Manish



Yahoo! Groups Links








Reply via email to