Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FONT Properties in BOX for Foxpro (Read 1871 times)
tongyin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: May 26th, 2006
FONT Properties in BOX for Foxpro
May 26th, 2006 at 12:39am
Print Post  
I have read topic: "FONT Properties in BOX" and tried the code below:

  fcx.ActiveBox.Text = "test font"
  fcx.ActiveBox.Font = New stdole.StdFontClass()
  fcx.ActiveBox.Font.Size = 33

It works perfectly in VB.Net. But my current application uses MS Visual Foxpro 9.0. I am new to Foxpro. I cannot figure out the way to made the code above works in Foxpro. Who has idea to convert the code above to Foxpro?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FONT Properties in BOX for Foxpro
Reply #1 - May 26th, 2006 at 6:12am
Print Post  
Try with

fcx.ActiveBox.Font = CreateObject("StdFont")

Stoyan
  
Back to top
 
IP Logged
 
tongyin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: May 26th, 2006
Re: FONT Properties in BOX for Foxpro
Reply #2 - May 26th, 2006 at 8:39am
Print Post  
The code works. Thanks... Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint