How to make a drop-down choice box work?
Posted: Tue Sep 12, 2006 14:25
I am trying to create a simple droplist, such as the dropdown "Font Colour" I see as I edit this very post: one which shows only one value (the currently active setting), and when clicked, enlarges to show all available choices and permits a new one to be selected which presumably calls an event handler in my code. However, I don't know how to do this with CEGUI.
I created a ComboDropList in CELayoutEditor, and give it approximately the same proportions as a textfield. In my code, I programmatically add a few ListboxTextItems to my ComboDropList.
However, when the code runs, the text of a single item is only smurfily visible (sawn off), and clicking on the widget does not reveal the other (moderate number of) choices. I am also puzzled by unexplained methods for "auto-arm" and "arm".
Is there more of a background on the intent and use of this class? Is it indeed a good choice for a drop list? And (incidentally), what the heck IS a combo box? I have never really seen the widget defined, particularly as it contrasts with a drop-down selector list.
Thanks in advance.
tone
I created a ComboDropList in CELayoutEditor, and give it approximately the same proportions as a textfield. In my code, I programmatically add a few ListboxTextItems to my ComboDropList.
However, when the code runs, the text of a single item is only smurfily visible (sawn off), and clicking on the widget does not reveal the other (moderate number of) choices. I am also puzzled by unexplained methods for "auto-arm" and "arm".
Is there more of a background on the intent and use of this class? Is it indeed a good choice for a drop list? And (incidentally), what the heck IS a combo box? I have never really seen the widget defined, particularly as it contrasts with a drop-down selector list.
Thanks in advance.
tone