General information
Category:
ActiveX controls in VFP
Title:
Creating Font Object in VFP
Hi all,
In my current project, I have to use a control designed for vb environment. One of the control properties is the Font property. When I use the control in vfp, the property value is mark as Object. There is a button with three dot caption in the Property window which brings up the font dialog box. Problem arise when I need to assign this property in run time (programmatically). I don’t know much about vb, but I think, in vb I can do this with these commands:
Dim oFont AS StdFont
WITH oFont
.Bold = True
.Name = “Arial”
ENDWITH
Then assign it to other object:
Set Text1.Font = oFont
How can I do this with VFP? I need to create a font object then assign it to the active-x control font property. I tried GETFONT() in vfp, but it returns strings instead of object compatible with font object.
TIA
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only