Text on the window

Post Reply
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Text on the window

Post by Natter »

Can I display text on the window, using the oWnd:Say() method, vertically (or at an angle) ?
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: Text on the window

Post by nageswaragunupudi »

Code: Select all | Expand

  DEFINE FONT oFont NAME "IMPACT"  SIZE 0,-60 BOLD NESCAPEMENT 900
   DEFINE FONT oFon2 NAME "VERDANA" SIZE 0,-30 BOLD NESCAPEMENT 2700
   DEFINE WINDOW oWnd FROM 0,0 TO 400,300 PIXEL

   oWnd:bPainted  := < | hDC |
      oWnd:SayText( "IMPACT",  nil, "L", oFont, CLR_HRED )
      oWnd:SayText( "VERDANA", nil, "R", oFon2, CLR_GREEN )
      return nil
      >

   ACTIVATE WINDOW oWnd CENTERED
   RELEASE FONT oFont, oFon2
 


Image
Regards

G. N. Rao.
Hyderabad, India
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Re: Text on the window

Post by Natter »

Thank you. Everything is working !
Post Reply