views:

88

answers:

1

how can i make a TRibbonComboBox act like a TCombobox with Style of csDropDownList? we don't want the user to be able to edit the choices in the list.

we need to use TRibbonComboBox because we want the current selection to be visible.

Microsoft word shows a combobox where you can select an item but cannot edit the item itself.

should i consider trying a TCombobox in the ribbon? i'd expect it won't look or not work correctly.

thank you for you comments!

+2  A: 

You can just use TRibbonComboBox.ReadOnly:

Determines whether the user can change the text of the edit control.

And furthermore:

Setting ReadOnly to true ensures that the text is not altered, while still allowing the user to select text. The selected text can then be manipulated by the application, or copied to the Clipboard.

(see documentation)

Mef
excellent--exactly what i needed! thank you!
X-Ray