Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

Sizing Box

The drop down portion of the combo box can be resized by the user if a sizing box is available.

A sizing box can be enabled by setting the DropDown.SizeBox property to True and the Scrollbars property to scrollSftBoxBothDis.

The end-user can resize the drop down portion by pressing the left mouse button while on the sizing box. Without releasing the mouse button, dragging the sizing box will increase/decrease the width and height of the drop down portion. Once the mouse button is released, the SizeBoxChange event occurs.

The width and height of the combo box are preserved. The next time the drop down portion is shown, the same width and height are restored. If the drop down portion is larger in height than the number of available items, the drop down portion is resized so no empty space is shown. If the DropDown.OptimalWidth property is set to True, the drop down portion is resized in width each time it becomes visible, overriding the size defined by the user.

The DropDown.Height and DropDown.Width properties can be used to preserve the drop down portion's dimensions by saving the information in the Windows registry or an INI file.


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.