-
Hyperactive Member
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
Originally Posted by Nouyana
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?
-
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
Originally Posted by Nouyana
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).
-
Hyperactive Member
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
Originally Posted by Krool
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?
Originally Posted by Krool
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?
-
Re: VBFlexGrid Control (Replacement of the MSFlexGrid control)
Originally Posted by Nouyana
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|