Click to See Complete Forum and Search --> : Please help: MS Flex Grid Active X control


Donzilla
August 1st, 2001, 08:36 PM
Hello:
Can someone please tell me what the unit is when setting or retrieving the width of a column in the MS Flex Grid control? It certainly is not pixels since setting the width to 240 makes the column only about 20 pixels wide (1/12 of a pixel?)

Thank you for any information.

cksiow
August 1st, 2001, 09:21 PM
probably be himetric, maybe you can use the form .ScaleX to convert it from himetric to pixel. read msdn for the method.



HTH

cksiow
http://vblib.virtualave.net - share our codes

John G Duffy
August 2nd, 2001, 11:28 AM
According to MSDN its Twips. Here is excerpt from it. (There are 1440 Twips per logical inch)
'
'
ColWidth Property (MSHFlexGrid)


Returns or sets the width of the column in the specified band, in logical twips. This property is not available at design time.

Note When using the MSFlexGrid, this property returns or sets the width of the specified column, in twips. Also, the ColWidth syntax, below, cannot be used in an MSFlexGrid due to the limitations of this control. If you are using MSFlexGrid, use the syntax: object.ColWidth(number) [= value]

Syntax


John G