Ok, set tabEnabled = true, and pressFocus & releaseFocus draw the focusRect correctly, as well as during an error. He extends UIComponent, so I'm already supporting all of the necessary styles.
It's hard to reproduce, but the tooltip will stick sometimes in both Flash Player 7 IE and Flash Player 8.5 Firefox 1.5. Anyway, close enough... unless you have an idea to force-remove the tooltip. ----- Original Message ----- From: "JesterXL" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, December 27, 2005 1:03 PM Subject: Re: [flexcoders] Custom Validation Error I copied the border_mc (RectBorder) code from TextInput, and implemented it in my custom component. However, he doesn't have the green border when focused, nor does the error tooltip go away when I validate. Fixing the former I think is easy; I have to use pressFocus since there is no key usage. Not sure about removing the tooltip, though... ----- Original Message ----- From: "JesterXL" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, December 27, 2005 12:30 PM Subject: Re: [flexcoders] Custom Validation Error I love how when I send emails, I make accelerated progress... well, some. Ok, looking at TextInput, apparently I needed some weird metatags: [Bindable] [ChangeEvent("valueCommitted")] [ChangeEvent("clear")] [NonCommittingChangeEvent("change")] I put those above my public variable, and I now get the tooltip error... however, it doesn't draw the red-rect. I guess I have to implement my own drawFocus, pressFocus methods? ----- Original Message ----- From: "JesterXL" <[EMAIL PROTECTED]> To: "Flexcoders" <[email protected]> Sent: Tuesday, December 27, 2005 12:18 PM Subject: [flexcoders] Custom Validation Error I've been trying to solve this for a week. I'm making progress, but at a snails pace. My goal is to have my custom component show a tooltip like TextInputs do when you have a validation error. In my debugging various Flex framework files, apparently _Application_watcherSetup creates a bunch of PropertyWatchers. The issue is, my custom comonent proprties do not pass in an object for the 2nd parameter to PropertyWatcher, and thus do not trigger validation events so Binding + ToolTipManager and friends can show a validation error as a tooltip with the errorString. The Application-generated.as file is weird, though; the _Application_watcherSetup just has 3 dependecy variables, and I can't find who is creating the PropertyWatchers even though the FlexBuilder 1.5 call stack claims it's that function. Any guidance? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

