Using TComboBox - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Using TComboBox

Hi,

I am using a TComboBox to display various items. I want to programatically set the width of the Drop Down Element of the combo box but NOT the control itself. Is there a way of setting this width so that I am only changing the dropdown elements width?

If not is there another suitable control that does allow this?

Thanks,
Joe

Comments

  • joesaddighjoesaddigh Posts: 2Member
    Don't worry I found an absaloute Gem on the internet which I have adapted to call my own function returning the width in pixels needed.

    zx_DefaultPushbackFixComboBox->Perform( CB_SETDROPPEDWIDTH,
    GetPushbackFixComboBoxWidth(),
    0 );

    Thanks,
    Joe
Sign In or Register to comment.