
Anybody have some good canned RTF routines (or class)?
it sounds like the following would be incredibly useful--so useful, in
fact, that i am guessing that somebody has done it already.
has somebody built a class wherein you can use the RTF control as a
"superenhanced label?" it may require the use of temp files or whatever,
but it doesnt sound that complicated. of course, it does not have to
support the full functionality of rtf--just something for slightly more
sophisticated character fonts and so forth. as i see it, somebody very
familiar with rtf codes could write a pretty good class about this in
about two hours. anybody know of a good one, pref for download?
(yes, i know the HTML control is an alternate means of doing what i want
to be doing, but i dont want to add that control to my projects).
ie, so code can be written such as
(imagine we have an rtf box named x)
rtfclear(x)
rtffont(x, arial, green, 20)
rtfaddtext(x, "THIS IS BIG GREEN TEXT" & vbcrlf)
rtffont(x, times, blue, 12)
rtfaddtext(x, "hi there" & vbcrlf)
rtfpublish(x) ' where this would be a call to save a temp file and use
' load it into the rtf box, say.
hmm.. i seem to have described what i want as a class, but have
illustrated above as just regular functions. so i guess either would work
:) (it seems perhaps to do it as a class the way one would like, vb would
have to support inheritance.
regards,
adrian