Page 34 of 34 FirstFirst ... 2431323334
Results 1,321 to 1,324 of 1324

Thread: VBFlexGrid Control (Replacement of the MSFlexGrid control)

  1. #1321
    Hyperactive Member
    Join Date
    May 2018
    Location
    Russia
    Posts
    317

    Question Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by Nouyana View Post
    Krool, can you somehow explain me where is the ClientWidth/Height, NonClientWidth/Height and GridLineOffsets here?
    The top gridline offset is now absent with the same code. I don't know why.

    Krool, please help me to understand what do theese properties mean:

    1. GetGridLineOffsets:
    Left = 0
    Top = 0 (I have no offset now, but I had 1px offset on my previous screenshot).
    Right = 15 (1px)
    Bottom = 15 (1px)

    2. ComboButtonNonClientWidth and ComboButtonNonClientHeight = 90 (6px). Where are they? I see only two pixels on the right and two pixels on the left of the picture.

    3. ComboButtonClientWidth = 195 (13px). My icon has 32px width. What is 13px?


  2. #1322

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,375

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by Nouyana View Post
    The top gridline offset is now absent with the same code. I don't know why.

    Krool, please help me to understand what do theese properties mean:

    1. GetGridLineOffsets:
    Left = 0
    Top = 0 (I have no offset now, but I had 1px offset on my previous screenshot).
    Right = 15 (1px)
    Bottom = 15 (1px)

    2. ComboButtonNonClientWidth and ComboButtonNonClientHeight = 90 (6px). Where are they? I see only two pixels on the right and two pixels on the left of the picture.

    3. ComboButtonClientWidth = 195 (13px). My icon has 32px width. What is 13px?

    1.
    Top 0 is correct. A cell has 2 grid border lines. It appears as a square border as the neighbor cell draws the other 2.

    2.
    6px is correct. 3 left and 3 right. It's non-client.

    3.
    If you have a larger icon then change ComboButtonWidth (Let).

  3. #1323
    Hyperactive Member
    Join Date
    May 2018
    Location
    Russia
    Posts
    317

    Question Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by Krool View Post
    1.
    Top 0 is correct. A cell has 2 grid border lines. It appears as a square border as the neighbor cell draws the other 2.
    Ok, I had to repost my previous screenshot. The top offset is NOT absent here (it is 1px). How could it happen? How can I change this?



    Quote Originally Posted by Krool View Post
    2.
    6px is correct. 3 left and 3 right. It's non-client.
    The red square is my icon's area . I see only two pixels on the right and two pixels on the left of the picture. Do you mean that 1px offset near the right border is non-client area too?

  4. #1324

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,375

    Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)

    Quote Originally Posted by Nouyana View Post
    Ok, I had to repost my previous screenshot. The top offset is NOT absent here (it is 1px). How could it happen? How can I change this?





    The red square is my icon's area . I see only two pixels on the right and two pixels on the left of the picture. Do you mean that 1px offset near the right border is non-client area too?
    You changed the grid line compared to previous screenshot. If you have FixGridLineOffsets to False (default) it's offsets are the same as in MSFlexGrid.

    Yes, 1 px nearby is non-client as well. I don't dream these px. It's coming from an API how MS actually draws it.

Page 34 of 34 FirstFirst ... 2431323334

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