Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rich Text Active X Control
Message
From
30/11/2007 17:46:44
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
01272587
Message ID:
01272589
Views:
19
>Can someone please tell me how you go about changing the font properties of the Rich Text Active X control programmatically. As in changing the font name, font size, etc...

It has a .Font member object, properties of which are what you need.
with this.font
   .bold=.t.
   .name="Georgia"
   .size=11
endwith
Debugger may not know all of these properties, but intellisense does. Do the poor man's builder - open your rtf subclass for editing, select it
aselobj(a)
ox=a(1)
ofo=ox.font
ofo.   
...and the dot in the last line is where the intellisense will kick in. Then just copy what you've done in command window into your method.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform