Re: combo attributes

new topic     » topic index » view thread      » older message » newer message

Hi Wolfgang,
yes I did run the example provided and I did see the message. It seems that
CBS_SIMPLE restricts what you can enter in the edit area, and setText(), to
elements that are already in the list. This is very often a good thing.
However, it arguably should be defined by the coder at control creation time
and not defaulted by win32lib.

The CBS_DISABLENOSCROLL is used to affect the visualisation of the vertical
scroll bar when there are less items in the list than the drop down area can
display. With this style set, the scroll bar is visible but disabled,
without this set, the scroll bar is not even visible. That's according to
the Microsoft manual, but it didn't seem to do any thing for me.

I suggest that these be removed from the win32lib default SortedCombo and
left up to the coder to provide as required. Unless anybody objects (this
change may break some existing code), this proposal will go into the
"bleeding edge" version tonight.

-----
cheers,
Derek Parnell

>
>
>Just run the example I provided, using the 'bleeding edge', and you'll see.
>( you get a win32lib error message )
>You can now use setText() in combo, so why not in sortedcombo ?
>...there may be other ramifications, ...
>
>> Hi Wolfgang,
>> can you clear up in my mind what is the exact nature of the problem with
>> a) Not having CBS_DISABLENOSCROLL
>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu