|
-
Jun 3rd, 2002, 06:37 AM
#1
Thread Starter
PowerPoster
RTF box text color
In starting to play with RTF boxes, I created a form with an rtf box and 2 buttons to show text w/ attributes. It works fine on my Win98 machine but the color does not work on my XP machine. Here is the code:
Private Sub Command1_Click()
rtfBox1.Text = "This is the text for the RTF box"
rtfBox1.Font = "Courier New"
End Sub
Private Sub Command2_Click()
rtfBox1.SelColor = RGB(255, 0, 0) ' sets text to red
rtfBox1.Text = "more text" ' overwrites prev text, as it should
End Sub
I can't see any difference in the RTF control and I'm running VB6.0 on both machines.
Any ideas?
-
Jun 3rd, 2002, 07:06 AM
#2
Thread Starter
PowerPoster
update
hm ... I killed the RTF control component and the box and did them all over again on the XP machine and now it says that selcolor is not a legal method, even though help says it is.
ForeColor does the job, but why am I getting an error on selcolor when help says it's the right thing to do?
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
|