Description
Whether the column in a DataWindow object should maintain its minimum height, when its Autosize property is enabled. The property is false by default.
HasMinHeight only applies to columns that have Autosize enabled. When both Autosize height and HasMinHeight are true, the height value will be the max value between the auto height value (the calculated value when the Autosize height is set to true) and the value specified in the Height property.
Applies to
Column, Computed Field, and Text controls
Syntax
PowerBuilder dot notation:
dw_control.Object.controlname.Height.HasMinHeight
Describe and Modify argument:
"controlname.Height.HasMinHeight { = value }"
Parameter |
Description |
---|---|
controlname |
The control for which you want to get or set the HasMinHeight property. |
value |
Whether the column should maintain its minimum height, when its Autosize property is enabled. Values are: No -- (default) Do not use the minimum height. If the Autosize property is enabled, the column that contains no data will be completely hidden. Yes -- Use the minimum height (the height selected in the painter) for the column. |
Usage
In the painter
Can be set only in code, not in the painter.
Examples
string setting setting = dw1.Object.empname.Height.HasMinHeight dw1.Object.empname.Height.AutoSize = "Yes" dw1.Object.empname.Height.HasMinHeight = "Yes" setting = dw1.Describe("empname.Height.HasMinHeight") dw1.Modify("empname.Height.AutoSize=Yes") dw1.Modify("empname.Height.HasMinHeight=Yes")
See also