PDA

View Full Version : Combobox pops UP instead of down! Help!


Head In A Pan
01-17-2007, 02:35 AM
I have made a form -
All but one comboboxes are cooperating and scrolling down...

Admittedly the troublesome cb has 40 labels, thus is long.
But no matter where on the stage she goes it pops UP instead of down!!:eek:

I want it to pop down and I want it to only open a certain length with a scrollbar on the side to allow it to fit.

How is this done?

Mazoonist
01-17-2007, 02:47 AM
Use the comboBox rowCount property to set the (displayed) height of the dropdown:

myCombo.rowCount = 8;

Will restrict the combo box to only 8 items showing (use whatever number works for you, of course). As far as popping up or popping down, I believe that if you give it enough room to pop down, it'll do that by default. Set rowCount to something small enough to allow it to have the room to pop down instead of up. As far as I know, that's the only control you have over that.

Head In A Pan
01-17-2007, 02:55 AM
Thanks mate -
Such a simple thing but I couldn't find any reference to it on the web.

Much appreciated.:)