See Also
|
Resizes selected controls as specified by the method parameters.
Syntax
object.ResizeSelectedControls(eResizeType
As vlResizeType, Optional newValue As Single = -1)
The ResizeSelectedControls method syntax has these parts:
|
Part |
Description |
| object |
An object expression that evaluates to VLFormDesigner. |
| eResizeType |
An integer specifying the resizing type to be applied to the selected
controls, as described in Settings.
|
| newValue |
Optional. An single specifying the new size of the selected control. This
parameter will be used only if eResizeType is specified as vlSizeHorzAbsolute
or vlSizeVertAbsolute |
Settings
The settings for eResizeType are:
|
Constant |
Setting |
Description |
vlSizeHorzAbsolute |
0 |
The width of the selected controls will be set to the value
specified by newValue parameter. |
vlSizeHorzShrinkToSmallest |
1 |
Width of all selected controls will be shrunk to the narrowest control among
the selected controls. |
vlSizeHorzExpandToLargest |
2 |
Width of all selected controls will be expanded to the windest
control among the selected controls |
vlSizeVertAbsolute |
3 |
The height of the selected controls will be set to the value
specified by newValue parameter. |
vlSizeVertShrinkToSmallest |
4 |
Height of all selected controls will be shrunk to the shortest
control among the selected controls. |
vlSizeVertExpandToLargest |
5 |
Height of all selected controls will be expanded to the tallest
control among the selected controls. |
 
Remark
This method allows you to provide control equi-sizing functionality with as
little as a single line of code. ResizeSelectedControls will not change size of
any control that is currently marked as locked.
ResizeSelectedControls may not be able set sizes of all types
of controls. For example, it will not be able to change the height of a
combobox control, or line controls.
|