Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating Font Object in VFP
Message
De
12/10/2001 11:30:04
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Creating Font Object in VFP
Divers
Thread ID:
00567657
Message ID:
00567657
Vues:
71
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform