trichview.support
flicker when update text then rescrolling |
Author |
Message |
Allan |
Posted: 06/27/2003 21:48:40 I'm running a RichView component with formatted text. When certain events are triggered the text would be regenerated and then scrolls back to the old position. (To make text look like it updated without moving) eg: var scroll:Integer; scroll := richview1.VScrollpos; redoView; //Changes the text in richview1 richview1.format; richview1.VScrollPos := scroll; richview1.repaint; The text scrolls to its old position fine, but it flickers since the editor(and scrollbar) moves to the top, then jumps down to its old position again. Is there a way to update the text and move the scrollbar back down without refreshing the component (so visually its still showing the old text), and once all that is done do one refresh to make it show the new text with it scrolled in the correct position already? Thanks for the help Allan |
Powered by ABC Amber Outlook Express Converter