Re: [flexcoders] Form visibility question
On 7/28/05, Jeff Beeman [EMAIL PROTECTED] wrote: Right now, we've got ActionScript turning the visibility of the form items on and off depending on answers to previous questions. The problem is that the form items still take up physical space. The behavior we'd like would have the form item not only be invisible but also not take up space. ... Jesse and Allen have already answered your question, but I'd like to point out that the behaviour you're looking for is similar to HTML/CSS display: none. You could build something fancy to achieve that. http://manish.revise.org/2005/06/controlling-flex-application-layout.html Of course, just setting width/height to 0 would serve your purpose for now. Manish -- 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/
[flexcoders] Form visibility question
We've got a project that has the following behavior. When a particular form item is answered a certain way, another form item should turn on on the page. A common example is choosing Other in a radio group turns on a text box for inputting what Other is. Right now, we've got ActionScript turning the visibility of the form items on and off depending on answers to previous questions. The problem is that the form items still take up physical space. The behavior we'd like would have the form item not only be invisible but also not take up space. Then, when the required answer is given, the form item would appear and push the content after it down. I know it's a weird question, so here's a visual example: Initial form state: Choose your favorite fruit: () Apples () Oranges () Lemons () Other Choose your favorite car: () Chevy () Ford () Toyota If Other is chosen: Choose your favorite fruit: () Apples () Oranges () Lemons (*) Other Please describe other: - | | - Choose your favorite car: () Chevy () Ford () Toyota /*** * Jeff Beeman * Digital Media Instructional Technologies * Arizona State University ***/ -- 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/
Re: [flexcoders] Form visibility question
You're probably binding it's visible property to another's property, and hosting them in a container. If so, say a VBox, then just additionally start them out with widht and height values of 0; then when they are made visible, have their width and height return to default values as well. Upon calling a setSize on them, you'll trigger the container they live in to adjust to their size. - Original Message - From: Jeff Beeman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, July 27, 2005 4:56 PM Subject: [flexcoders] Form visibility question We've got a project that has the following behavior. When a particular form item is answered a certain way, another form item should turn on on the page. A common example is choosing Other in a radio group turns on a text box for inputting what Other is. Right now, we've got ActionScript turning the visibility of the form items on and off depending on answers to previous questions. The problem is that the form items still take up physical space. The behavior we'd like would have the form item not only be invisible but also not take up space. Then, when the required answer is given, the form item would appear and push the content after it down. I know it's a weird question, so here's a visual example: Initial form state: Choose your favorite fruit: () Apples () Oranges () Lemons () Other Choose your favorite car: () Chevy () Ford () Toyota If Other is chosen: Choose your favorite fruit: () Apples () Oranges () Lemons (*) Other Please describe other: - | | - Choose your favorite car: () Chevy () Ford () Toyota /*** * Jeff Beeman * Digital Media Instructional Technologies * Arizona State University ***/ -- 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/