It took me a while, I put this in the init of the control, and it finally
worked...

With Thisform.stcntbid.St_amt_100k
        .Font.bold=.T.
        .Font.Name="ariel"
        .Font.Size=200
        .BackColor = Rgb(0,0,0)
        .SelLength = Len(Thisform.stcntbid.St_amt_100k.textRTF)
        .SelColor = Rgb(255,255,0)
Endwith


Thanks for the advice, and I appreciate your help, and patience.


James E Harvey
Hanover Shoe Farms, Inc.
M.I.S./Corresponding Officer
Off: 717-637-8931
fax: 717-637-6766
email: jhar...@hanoverpa.com

-----Original Message-----
From: profox-boun...@leafe.com [mailto:profox-boun...@leafe.com] On Behalf
Of Rick Schummer
Sent: Monday, July 27, 2009 7:05 PM
To: profox@leafe.com
Subject: RE: richtext control properties

>> I did but could not see how it would work here.<<

Stuart already gave you the answer in his post.

st_amt_1k.SelColor = rgb(255,255,0)

Now this only works with selected text. If you want to change all the text
to the same color then you have to use the SelStart and SelLength properties
of the control.

Rick
White Light Computing, Inc.

www.whitelightcomputing.com
www.swfox.net
www.rickschummer.com




[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/000001ca0f21$48e38c50$daaaa4...@com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to