They're defined in different classes and may have had some legacy reasons for doing so. The API is cleaned up in 2.0.
Matt -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of ehogberg Sent: Sunday, January 29, 2006 10:08 PM To: [email protected] Subject: [flexcoders] Re: Form as CellRenderer Strangeness in 1.5 Hi Matt: Never got that far--thought I'd try using addChild(...) in the AS-based CellRenderer. Interestingly enough, that worked like a charm--my Form-based component's children are all playing nicely now w/ spacing, layout, etc. So this leads me to ask...what's the purpose of having two different calls to add subcomponents to a component? What's the designed use for createClassObject() vs. addChild()? -E- --- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > Check out layoutChildren and measure() and see if any strangeness is > going on? Are you calling super in the createChildren() method too? > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of ehogberg > Sent: Friday, January 27, 2006 9:59 PM > To: [email protected] > Subject: [flexcoders] Form as CellRenderer Strangeness in 1.5 > > Hi all: > > I've noticed some strangeness attempting to use a Form-based custom > component (with nested TextEntry's, ComboBox's, etc.) as a CellRenderer: > > a) When I directly specify my custom component as the CellRenderer > for the list, everything works fine. > > b) When I write a AS-based CellRenderer, overriding the > createChildren() method, calling createClassObject() to insert a new > instance of the custom component, the rendered component is unusable. > Text fields never receive focus when I click on them. When I open > the combo, the drop-down list appears in the upper-left corner of the > Flex application. > > Based on the latter, I'd guess that the relative X/Y coords are > getting screwed up somehow. No idea how,however. Any special > properties I need to set when using a AS-based CellRenderer to get > around this? > > Thanks in advance, > > -Eric- > > > > > > > -- > 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 <*> 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/

