Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Font properties for RTF olecontrol
Message
From
16/07/2006 13:24:23
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01136777
Message ID:
01136797
Views:
9
Hi Vladimir, thanks for the reply.
>	PROCEDURE Init
>		m.myfont = "Fixedsys"
>		m.mysize = 20
>		Thisform.oRtf.oBJECT.SelStart = 0
>		Thisform.oRtf.oBJECT.SelLength = LEN(Thisform.orTF.text)
>		Thisform.oRtf.oBJECT.SelFontName =  m.myfont
>		Thisform.oRtf.oBJECT.SelFontSize =  m.mysize
>	ENDPROC
>
>HTH

This will help to a certain extent, but...
a) I don't want the text highlighted (can I simply do a KEYBOARD '{HOME}' to unselect the text, or is there a 'selectposition' property?)
b) Highlighting the text will enclose the text between RTF tags. Ideally, if the text was originally plain text, I would like it to remain plain (ie. no tags). I was hoping the default font name/size would be for display purposes only, and not affect the text.
c) The above code is for the form.Init method, which only runs once. I guess I would need the code in a user-defined method that would be called each time a new record was displayed.

Do you know where I can get a full list of properties for oRTF.object?

Regards,
Alan
Previous
Reply
Map
View

Click here to load this message in the networking platform