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 

Selected Row and Pinned Columns

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



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Mon Oct 03, 2005 9:23 am    Post subject: Selected Row and Pinned Columns Reply with quote

Hello Support

I have a VT with a lot of Rows and Columns. Some Column are "Pinned". When I navigate through the Rows with the Up/Down Keys or with the Mouse a flickering effect occurs. It seems that VT draws first the not-pinned columns and afterwards the pinned columns.

Thanks and best Regards
Giuseppe
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Oct 04, 2005 5:50 am    Post subject: Reply with quote

The pinned columns are drawn on a separate "pinned panel" control. This is so that if there is an active editor control in an unpinned control it will slide underneath the pinned columns when scrolled horizontally.

Unfortunately this means that the drawing is not all done in a single paint event which can result in a the two paint events being perceptable when scrolling. On our (not very fast) test machine running our License Tracker application (with a lot of columns and rows) this is barely noticeable - ie you have to look pretty hard to see the effect.

How bad is the flicker you are seeing? Can you see the same effect when using our Dataset Browser sample?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Tue Oct 04, 2005 8:42 am    Post subject: Reply with quote

Hello Support

The flicker on the Dataset Browser is ok, when the Form is not maximized.
After maximizing the Form, the ficker is good visible.
On our App it's flicker a little bit more.

Giuseppe
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Oct 04, 2005 10:26 pm    Post subject: Reply with quote

On our test machine with the Dataset Browser full screen - you can perceive that the selected row is painted in two parts - but it is not very noticeable - and only while the selection is the screen (once it hits top or bottom the flicker stops). How many active columns do you have in your application?

We are actively investigating whether we can do anything to improve the painting performance in this case - but can't make any promises at this stage.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Wed Oct 05, 2005 6:57 am    Post subject: Reply with quote

Infralution wrote:
... How many active columns do you have in your application?

We are actively investigating whether we can do anything to improve the painting performance in this case - but can't make any promises at this stage.


Ok... Thanks. We have 20 Active Columns.

Giuseppe
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Oct 12, 2005 5:17 am    Post subject: Reply with quote

We are still investigating this - one thing that does have an effect, if you are running on XP, is to set the extended window style as follows by overriding CreateParams

Code:
protected override CreateParams CreateParams
{
    get
    {
        const int WS_EX_COMPOSITED = 0x02000000;
        CreateParams cp = base.CreateParams;
        cp.ExStyle = cp.ExStyle | WS_EX_COMPOSITED;
        return cp;
    }
}


This does seem to eliminate the flicker on our test machine - but does slow the drawing a little. Maybe you could try this on your implementation to see if it helps. We don't want to introduce this into our released build until we fully understand the possible implications.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Wed Oct 12, 2005 8:00 am    Post subject: Reply with quote

Hello

It works fine!

Thanks
Giuseppe
Back to top
View user's profile Send private message
flc.net



Joined: 21 Jun 2005
Posts: 89
Location: Switzerland

PostPosted: Wed Oct 12, 2005 8:54 am    Post subject: Reply with quote

after testing on a big grid, the drawing (scroll/expand) is to slow.

best regards
giuseppe
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Apr 05, 2006 9:32 am    Post subject: Reply with quote

You'll be happy to know that this issue has finally been resolved in Version 2.5.0 of Virtual Tree. This version includes a new drawing algorithm that allows all drawing to be done double buffered to the main control surface (thus eliminating flicker between pinned/unpinned columns) without sacrificing the ability to scroll active editor controls beneath the pinned 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