Alignment of combo dropdown list?

G

Guest

Can I influence the horizontal alignment of the dropdown list that a combo
produces?
It seems that by default it is centred on the combo control.
I would like to have it a little to the left as it covers another control
which it's useful to see at the same time. (And in case you're wondering why
I don't simply move that other control, it's because it would fall off the
edge of the already very busy form...)
 
R

Rick Brandt

CW said:
Can I influence the horizontal alignment of the dropdown list that a
combo produces?
It seems that by default it is centred on the combo control.
I would like to have it a little to the left as it covers another
control which it's useful to see at the same time. (And in case
you're wondering why I don't simply move that other control, it's
because it would fall off the edge of the already very busy form...)

Actually the left-hand edge of the drop down list should line up with the
left-hand edge of the ComboBox control UNLESS there is not enough room on
the right side of the screen to do that in which case it will shift the list
to the left to make the list fit.

The list will even drop "up" if there is not room enough below on the
screen.
 
D

Dirk Goldgar

In
CW said:
Can I influence the horizontal alignment of the dropdown list that a
combo produces?
It seems that by default it is centred on the combo control.
I would like to have it a little to the left as it covers another
control which it's useful to see at the same time. (And in case
you're wondering why I don't simply move that other control, it's
because it would fall off the edge of the already very busy form...)

I don't believe you have any control over the position of the dropdown
list.
 
G

Guest

OK, thanks for both the quick responses. And Rick, yes I was mistaken, it
just appeared to be centred due to my list width being the same width as the
control itself. I have now fiddled with the widths of each of these and
obtained a better result.
Thanks again
CW
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top