FONT samples

FONT samples

Postby yardenmo » Fri Jan 23, 2009 12:57 pm

Hi,

Where can I find a sample for using FONTS?


Thanks,
Moshe Yarden
yardenmo
 
Posts: 33
Joined: Tue Aug 12, 2008 7:08 am

Re: FONT samples

Postby Antonio Linares » Sat Jan 24, 2009 4:55 am

Moshe,

Here you have a working example:
testfont.prg
Code: Select all  Expand view  RUN
// FiveWin for Pocket PC - Testing fonts

#include "FWCE.ch"

function Main()

   local oWnd, oSay1, oSay2, oFont1, oFont2
   
   DEFINE FONT oFont1 NAME "Verdana" SIZE 0, -17

   DEFINE FONT oFont2 NAME "Ms Sans Serif" SIZE 0, -10
   
   DEFINE WINDOW oWnd TITLE "TestFont"
   
   @ 1, 1 SAY oSay1 PROMPT "Hello" FONT oFont1 SIZE 80, 20

   @ 3, 1 SAY oSay2 PROMPT "World" FONT oFont2 SIZE 80, 20
   
   ACTIVATE WINDOW oWnd ;
      ON CLICK MsgInfo( "Click!" ) ;
      VALID MsgYesNo( "Want to End ?" )
   
return nil

Image
Also you may review FWPPC\samples\Test2.prg and Tutor05.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42121
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FONT samples

Postby yardenmo » Sun Jan 25, 2009 6:07 am

Thanks. I've tried it, and it works nice.
yardenmo
 
Posts: 33
Joined: Tue Aug 12, 2008 7:08 am


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 4 guests