Flex DateField / DateChooser Issue?

Start with something like this: From here you just need to handle click events to the date chooser and fill out the textinput appropriately UPDATE: In attempt to answer your questions from comments UI: Script: protected function dateInput_clickHandler(event:MouseEvent):void { dc. IncludeInLayout =!dc. IncludeInLayout; dc.

Visible =!dc. Visible; } protected function dc_changeHandler(event:CalendarLayoutChangeEvent):void { dateInput. Text = dateFormatter.

Format(event. NewDate); dateInput_clickHandler(null); } Declarations: Hope this helps! -Ian.

Thanks for your reply Totec. Appreciate it. This works, but then we need to show an icon (or something similar) next to the text field, so that the users will know they have to click on it to show the calendar and also edit the date field as well.

Any ideas on that? – Harish Jan 31 at 20:28 @Harish: Create a custom skin for your TextInput based on the default skin and add your icon. – Wade Mueller Jan 31 at 21:02 I agree with wade.

Create a custom skin for TextInput. Under the section (on the bottom) after the RichEditableText component add an image for the calendar icon. – Ian T Jan 31 at 21:16 Ok, I can live without an Calendar icon.

But now I have another issue. The DateChooser occupies a lot of space below the Text Box (visible = false, but it still needs space to hold the DateChooser component) and it looks awkward when there are 3-4 date fields in a form. So is there any way to collapse the DateChooser when it is not visible or to show it as a Popup?

So that it does not use up the space following the Text Field? – Harish Feb 1 at 0:50 1 includeInLayout=false – Ian T Feb 1 at 1:40.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions