Mobile - Disable repaint temporarily
Posted: Wed Feb 05, 2014 9:44 pm
Hello,
I'm using XE5, developing for iOS. I put together a very simple demo that is attached. Basically I put a TListview and a TChart on a form, they aren't connected at all. When the TChart is blank, scrolling the listview works fine. As soon as I add one item scrolling becomes laggy because the chart is constantly being repainted (in the example there is a memo that logs how often paint is called).
A simple solution would just be disable repainting briefly while scrolling. Is there any way to do that?
(I posted this problem on Stack Overflow, if interested you can look here: http://stackoverflow.com/questions/2155 ... firemonkey)
I'm using XE5, developing for iOS. I put together a very simple demo that is attached. Basically I put a TListview and a TChart on a form, they aren't connected at all. When the TChart is blank, scrolling the listview works fine. As soon as I add one item scrolling becomes laggy because the chart is constantly being repainted (in the example there is a memo that logs how often paint is called).
A simple solution would just be disable repainting briefly while scrolling. Is there any way to do that?
(I posted this problem on Stack Overflow, if interested you can look here: http://stackoverflow.com/questions/2155 ... firemonkey)