Hello,
if it posible that i can made any changes in a RichViewEdit component without drawing?
I want no see any changes by the programm on the screen befor i say "draw".
best wishes, Frank
Draw only after all changes?
-
- Posts: 14
- Joined: Fri Jan 20, 2006 11:05 am
- Location: Germany
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
In TRichViewEdit, there are two types of methods for document modifications.
1) "Viewer-style" methods, introduced in TRichView. They do not update document view until you call Format. They provide the fastest way to modify document, but these changes cannot be undone and redone by user.
After calling such method, document becomes unformatted and cannot be displayed until you call Format.
2) Editing methods, introduced in TRichViewEdit. They always reformat and redraw document. You can suppress redrawing using WM_SETREDRAW message:
1) "Viewer-style" methods, introduced in TRichView. They do not update document view until you call Format. They provide the fastest way to modify document, but these changes cannot be undone and redone by user.
After calling such method, document becomes unformatted and cannot be displayed until you call Format.
2) Editing methods, introduced in TRichViewEdit. They always reformat and redraw document. You can suppress redrawing using WM_SETREDRAW message:
Code: Select all
SendMessage(rve.Handle, WM_SETREDRAW, 0, 0);
<modifications here>
SendMessage(rve.Handle, WM_SETREDRAW, 1, 0);
rve.Invalidate;
-
- Posts: 14
- Joined: Fri Jan 20, 2006 11:05 am
- Location: Germany
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: