[Plib-users] combo box problems
Brought to you by:
sjbaker
From: Clay, B. <bc...@ba...> - 2004-08-23 23:25:19
|
I use the following code to initialize a combo box =20 mObjectCombo =3D new puComboBox(20, 20, 280, 60, mObjectList, TRUE); =20 mObjectCombo->setLabel("Select Object"); mObjectCombo->setCurrentItem(0); mObjectCombo->setCallback(SelectObjectCB); mObjectCombo->makeReturnDefault(FALSE); mObjectCombo->setColour (PUCOL_LABEL, 0.0, 0.0, 0.0, 1.0); mObjectCombo->setChildColourScheme(1, 0.3f, 0.4f, 0.6f, 1.0f, TRUE); mObjectCombo->setChildColour(1, PUCOL_LEGEND, 0.0f, 0.0f, 0.0f, 1.0f, TRUE); mObjectCombo->setChildStyle ( PUCLASS_ARROW, PUARROW_DOWN ) ; =20 The problem I have is the arrow always points up no matter how many items are on the list so some are not displayed when the list is full. Also there is no scroll bar as most combo boxes have for larger lists. =20 Am I invoking the combo box wrong? =20 Is the direction only set at time of initial menu creation or any time the combo box is used? =20 Is there a way get a scroll bar to handle larger lists as is done in the file picker? =20 =20 Bruce bclay at ball.com =20 =20 |