QRadioButtonList Layout Flexibility

thread: 3 messages  |  last: about 4 years ago  |  started: friday, december 21, 2007, 6:06 pm pst


#1  |  alex94040 (Seattle, WA) United States of America Qcodo Core Contributor
Friday, December 21, 2007, 6:06 PM PST

It would be great if it was possible to override the rendering of QRadioButton List to look like this:
[ ] option 1      [ ] option 2      [ ] option 3

or like this:

[ ] create a new item
[ ] pick existing item from the list: [ dropdown ]


Today, this is impossible, because the the TABLE/TR/TD HTML that gets generated for the radio button list. I understand that I can potentially override the GetControlHTML method of the QRadioButtonList class, but it's something I'd expect the framework to provide (i.e. a bit more flexibility with the basic control).

Thanks!
-Alex

#2  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Friday, December 28, 2007, 9:23 PM PST

In example one, you can do this by specifying the RepeatDirection and RepeatColumns properties -- in short, you would want RepeatDirection::Horizontal and then RepeatColumns 3.

For (2), that's a bit tougher because you're no longer dealing with just a simple radiobuttonlist (which extends from the structured QListControl).  Best bet would be to extend/develop your own control to handle something like that.

#3  |  alex94040 (Seattle, WA) United States of America Qcodo Core Contributor
Friday, January 4, 2008, 1:54 PM PST

Fair enough. Thanks.



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.