View previous topic :: View next topic |
Author |
Message |
z00rg
Joined: 03 Jan 2006 Posts: 12
|
Posted: Tue Mar 07, 2006 10:36 am Post subject: Problem with custom painted rowm when first column in pinned |
|
|
I am painting custom rows, pls see the attached picture, however when i pin the first column, the display of custom rows goes haywire, and they are blank spaces between custom rows.
Picture 1: Before pinning a column
Picture 2: After pinning a column
Another question: Cant just expansion indicators be pinned seperately, currently inorder to do this i have to pin the first column, i need that expansion indicators remain stationary when you scroll the grid sideways.[/img] |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Mar 08, 2006 5:42 am Post subject: |
|
|
I think the problem is how you have implemented your RowWidget OnPaint (or PaintBackground/PaintForeground) method - I assume this is what you are doing. When you have a pinned column(s) there are actually two RowWidgets per row - one for the pinned part of the row and one for the scrollable part. It looks like the part for the scrollable part of the row is incorrectly allowing for the expansion indicator indentation. If you want these rows to span across both the pinned and scrollable panels (ie not appear doubled like this) then you would need to get the second scrollable RowWidget to draw so that it aligns with the pinned RowWidget. To do this you would subtract off the RowWidget.Bounds.Left (which is adjusted to by the scrolling offset) when calculating the positions to draw. If you could post some of your drawing code I could probably give more assistance. _________________ Infralution Support |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Nov 20, 2006 5:10 am Post subject: |
|
|
You may be interested to know that Version 3.2 of Virtual Tree now supports SpanningRowWidgets. These allow you to have a row that spans across all columns. RowBindings now have a SpanningRow property that you can set to true to use the SpanningRowWidget instead of the standard RowWidget. These work with both pinned and unpinned columns. _________________ Infralution Support |
|
Back to top |
|
|
|