CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2000
    Location
    Oregon
    Posts
    33

    Please help: MS Flex Grid Active X control

    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.



  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: Please help: MS Flex Grid Active X control

    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

  3. #3
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Please help: MS Flex Grid Active X control

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured