1. Drop down list with horizontal scroll bar
I have a drop down list where the entries in the list are longer than
will fit within the width of the control. How do I, using win32lib, get
the drop down list to have an auto horizontal scroll bar? I tried
adding the style CBS_AUTOHSCROLL using the addStyle routine but it
doesn't seem to work.
Any help?
Jonas
2. Re: Drop down list with horizontal scroll bar
A dropdown list can only be as long as it's parent, ( although I think it can be
less ! ).
There's a demo ( combo_emu.exw ) in my tutorials that emulates a dropdown *with*
a larger list.
Although I don't show it, you can use:
void=sendMessage(yourlist, LB_SETHORIZONTALEXTENT, 600, 0)
--where LB_SETHORIZONTALEXTENT=404,
--( and 600 is size, for example )
--to give this list a horizontal scroll bar, for an even larger 'view'.
Wolf
> > I have a drop down list where the entries in the list are longer than
> > will fit within the width of the control