Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with custom painted rowm when first column in pinned

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
z00rg



Joined: 03 Jan 2006
Posts: 12

PostPosted: Tue Mar 07, 2006 10:36 am    Post subject: Problem with custom painted rowm when first column in pinned Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Mar 08, 2006 5:42 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Nov 20, 2006 5:10 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group