|
-
Feb 24th, 2000, 10:31 PM
#1
Hi. I hope someone can give me some help with this. I don't know if it's possible, but i would like to change the color of the highlighter in a richtextbox (not the color of the text that is highlighted, but the actual highlighting color). For me, i find the highlight color i get in programs written in Visual Basic is BLACK. However, the rest of the programs in the system use GREEN! Is it possible to change the color of the highlight at run-time? I would like its color to be the same as the color of the richtextbox so that the highlighter does not show, but the text is highlighted all the same. If it's not possible to do this, can anyone suggest a way to change the color of pieces of text in the richtextbox to gray. The idea is a speed reading training program; i have some text in the box, and i want to dim the color of pieces of it at timed intervals as a way of guiding reading speed and discouraging a user to regress...read back.
If anyone can help, i would really appreciate it. Thanks!
-
Feb 25th, 2000, 03:25 AM
#2
Instead of Dimming all Text but the Word that should be being Read, why not make the word being Read more prominent, this would be just as effective and alot less hassle, because you could just use the SelStart and SelLength to select the Current Word, then use SelBold = True For example to make tue Current word Bold.
-
Feb 25th, 2000, 04:19 AM
#3
Hyperactive Member
Aaron, isn't there an API to change the system-defined color for selected items? I seem to remember reading a couple of posts a while back about that. But maybe, I'm remembering wrong.
-Ryan
I smell varmint poontang, and the only good varmint poontang is dead varmint poontang...
-Bill Murray, Caddyshack
-
Feb 25th, 2000, 04:32 AM
#4
I'm sure there is, but the Richtextbox doesn't use it anyway, so it wouldn't be of any use.
-
Feb 25th, 2000, 06:37 AM
#5
Hyperactive Member
-Ryan
I smell varmint poontang, and the only good varmint poontang is dead varmint poontang...
-Bill Murray, Caddyshack
-
Feb 25th, 2000, 11:54 AM
#6
Select Color
It's still the same problem. I don't want to show the highlighter. Making it bold won't really work because i have a pre-calculated justify routine. Making any changes to the widths of characters in it (like making any portion bold, even temporarirly) will ruin the justify and will push the text off into the next line in some cases where the margin isn't large enough to accomodate the words. Also it is quite distracting for a reader to see their text increase and decrease in width! Isn't there a way to change the color without using selcolor? Like do it by sending a message through API or something...or changing the rtf code to change the color? And dimming is rather important, remember, i don't want the reader to look back at the text they should have already read.
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
|