|
-
July 28th, 1999, 04:09 PM
#1
Screen Refresh - RichTextBox
I have a RichTextBox populated with a .rtf file in a form. The requirement is to highlight the next word that is in blue color (acutally, any color that is not black) when the user press F2 key.
To implement this functionality, I used UpTo function to jump to next available <space> ,' vbCR, vbLF etc., and select the first letter of the word and check the color. The problem here is that when I select the first letter of a word to check the color it highlights the letter which I want to avoid.
I want to stop screen updating (refresh) and do this searching process and then redraw the screen.
I was looking for a method which is mimilar to "Application.ScreenUpdating" method in VBA.
If you know the solution or workaround to address this requirement or to solve the screen update problem, please respond as soon as possible.
Appreciate your help.
Vasu
-
July 29th, 1999, 12:33 AM
#2
Re: Screen Refresh - RichTextBox
There is a window message WM_SETREDRAW which can be sent with FALSE/TRUE to block/unblock the updating of the window.
May be you could try this...
Ravi Kiran
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|