|
-
Aug 29th, 2000, 01:57 AM
#1
Thread Starter
New Member
The first one I have is probably the one I'm most desperately looking for an answer to, and the one I'm most afraid I won't get one, too. I've seen it asked several times, but never seen an answer. I'm hoping maybe someone will have figured it out by now. I want to be able to change the background color of only some text in an RTB. It's possible that each letter in the box will have a different color behind it. If you use MS Word, and change the Highlight color, this is what I am wanting to do. I saw at another site where someone said that this was not possible with the richtx32.ocx control, because it's based off of msrich32.dll, and the ability for the highlighting the background wasn't added until msrich20.dll. I found a control that uses the newer dll, however it is missing a lot of the features that I need from the control that ships with VB. I'm hoping that there is a way to do this without having to create my own control (Especially as I've never done that, and not sure if I can ).
My other question: Is there a way to make text flash/blink in an RTB? And, if so, is there a way to control the frequency of the flashing?
BTW, this is only my first post, however I have learned about twice as much as I knew about VB in the past week, from reading old threads here. A lot of what I thought was impossible has been shown how to be done, and it's helped me a lot to add features to my current project, as well as optimize it! Any help that anyone can give me on these last two things I'm looking for would be greatly appreciated!
Oh, and I am using VB5 Enterprise Edition.
[Edited by Elezar on 08-29-2000 at 03:05 AM]
-
Aug 29th, 2000, 02:17 AM
#2
There is a way to highlight text in a Richtextbox. Take a look at this thread. Megatron posted an example of how to do this.
-
Aug 29th, 2000, 08:57 AM
#3
Using a Timer, you can make a RichTextBox blink.
Code:
Private Sub Form_Load()
Timer1.Interval = 250
End Sub
Private Sub Timer1_Timer()
If RichTextBox1.SelColor = vbWhite Then
RichTextBox1.SelColor = vbBlack
Else
RichTextBox1.SelColor = vbWhite
End If
End Sub
When you select some text, it will start to blink.
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
|