April 17, 2024, 07:19:45 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Combobox question

Started by Haim, December 06, 2007, 02:49:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Haim

Hi,
Can anyone tell me how to set the number of items that will be displayed in the dropped down list of a ComboBox, when it's being clicked upon.
It seems that the efault is 4. iI would like at least 8 items showing.

Haim

LarryMc

When you create the combobox the "h" paramater determines the max height of the dropdown window of choices.
   Create(int l,int t,int w,int h,int style,int nID,string title,CWindow *parent);
Remember, if the height entered when the combobox is created is greater than the height required to show all the choices the dropdown will be shortened so that there is no trailing white space.


Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Haim

Thanks Larry.
i'll try that out now.

Haim