1. Computing

Sizing TComboBox Drop Down List Width - No Cut Off

By July 3, 2012

Follow me on:

in TComboBox :: When a combo box is in dropped down state Windows draws a list box type of control to display combo box items for selection.

When the length (of a string) of items exceeds the width of the combo box, the items are displayed as cut-off!

Calling CB_SETDROPPEDWIDTH and WM_CTLCOLORLISTBOX to the rescue...

Read the full article to learn how to Resize The Width Of The Drop Down List To Ensure No Cut-Off

Related:

Comments
October 19, 2011 at 2:57 pm
(1) Peter K. says:

D4 has a problem with Canvas.TextWidth() function. How to solve it? Thanks, Peter

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.