CGridCtrl:SetVertAlign, CGridView:SetVertAlign
The SetVertAlign method sets the vertical alignment for the entire grid or a row of the grid. This method overrides the initial grid properties defined by the values of GridParams.nVertAlign and GridParams.nTH_VertAlign.
CGridCtrl:SetVertAlign( nAlign )
CGridCtrl:SetVertAlign( nRow, nAlign )
Where nAlign is the alignment value: 1= align top, 2= align
bottom, 3= align center.
nRow is the
index of the row to set. Rows in the table body begin at index 1. A
value of 0 or less indicates a row in the top heading.
If
nRow is not specified, the entire table
is set.
The following script sets the alignment of row 12 to "bottom":
|
-- attach a grid from the Mira desktop |
|
-- create a CGridCtrl for the window |
|
-- set the alignment of row 12 to "bottom" |
Mira Pro x64 Script User's Guide, v.8.77 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.