Hi, thanks for the reply. The reason for not simply using the VBox solution is because the extended DateChooser must act as the date chooser which pops up when the user clicks the icon next to the text input field of a date field. The date field has a dropDownFactory property which can point to a factory which creates instances of the derived version of the DateChooser. However, the dropDownFactory must return a DateChooser (or Derived DateChooser). Therefore, I can see that I will need to create the derived dateChooser as an action script component.
--- In [email protected], "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > Why bother extending it? Why not just build an MXML component consisting of > a DateChooser and a "Today" button in a vbox? Then either create methods in > your component that set values that the DateChooser binds to, or use > "customComponentInstance.dateChooser.selectedDate" or something similar to > access it? That's what I did when I wanted to add a "null this field" button > to DateField. > > -Josh > > On Wed, Jul 16, 2008 at 1:12 AM, duncan_coutts <[EMAIL PROTECTED]> wrote: > > > Hi there. I am required to build a extended version of the DateChooser > > component in Flex 3. The main focus of this extended version of the > > control is that it have a "Today" button placed underneath the > > calender but still within the bounds of the date chooser component. My > > efforts so far consist of adding a button inside a VBox using the > > create children method. However, the button encroches the calander > > space on the datechooser component. Does anyone have any idea how I > > can do this? > > > > > > ------------------------------------ > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > > Links > > > > > > > > > > > -- > "Therefore, send not to know For whom the bell tolls. It tolls for thee." > > :: Josh 'G-Funk' McDonald > :: 0437 221 380 :: [EMAIL PROTECTED] >

