Trying to use SAY + FONT with Escapement

Trying to use SAY + FONT with Escapement

Postby vilian » Wed Aug 22, 2012 8:55 pm

Hi,

I'm trying to use SAY + FONT with Escapement, ​​but the text is not displayed properly! Can anyone help me?

Code: Select all  Expand view

#include "FiveWin.ch"

FUNCTION Main()
LOCAL oWnd,oSay[3],oFont[2]

   DEFINE FONT oFont[1] NAME "ARIAL" SIZE 0,20 ;
               NESCAPEMENT 900 BOLD

   DEFINE WINDOW oWnd FROM 1,5 TO 20,65;
          TITLE "Testing SAY"

   @ 05,05 SAY oSay[2] PROMPT "THIS DONT SHOW" OF oWnd COLOR 0 ;
               SIZE 80,200 FONT oFont[1] CENTER DESIGN UPDATE

   ACTIVATE WINDOW oWnd


 
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: Trying to use SAY + FONT with Escapement

Postby kok joek hoa » Fri Aug 24, 2012 9:56 am

Hi Vilian,


Try this :

Code: Select all  Expand view
#include "FiveWin.ch"

FUNCTION Main()
LOCAL oWnd,oSay[3],oFont[2]

   DEFINE FONT oFont[1] NAME "ARIAL" SIZE 0,20 BOLD;
               NESCAPEMENT -900
         
       
   DEFINE WINDOW oWnd FROM 1,5 TO 20,65;
          TITLE "Testing SAY"

   @ 05,05 SAY oSay[2] PROMPT "THIS DONT SHOW" OF oWnd COLOR 0 ;
               SIZE 250,200 FONT oFont[1]  CENTER DESIGN UPDATE

           
           
   ACTIVATE WINDOW oWnd



regards,

Kok
kok joek hoa
 
Posts: 117
Joined: Tue Jan 03, 2006 6:18 pm

Re: Trying to use SAY + FONT with Escapement

Postby vilian » Fri Aug 24, 2012 11:21 am

Thanks for the reply, But with NESCAPEMENT -900 text is displayed like this:

Image

Need to display like this:

Image
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: Trying to use SAY + FONT with Escapement

Postby kok joek hoa » Fri Aug 24, 2012 12:39 pm

Hi Vilian,

try this :

Code: Select all  Expand view
#include "FiveWin.ch"

FUNCTION Main()
LOCAL oWnd,oSay[3],oFont[2]

   DEFINE FONT oFont[1] NAME "ARIAL" SIZE 0,20 BOLD;
               NESCAPEMENT 900
         
       
   DEFINE WINDOW oWnd ;//FROM 1,5 TO 20,65;
          TITLE "Testing SAY"

 
 
    ACTIVATE WINDOW oWnd MAXIMIZED   ;
        ON PAINT OWND:SAY(410,410,"THIS DONT SHOW",CLR_BLACK,CLR_YELLOW,oFont[1],.T.)
   




Regards,

kok
kok joek hoa
 
Posts: 117
Joined: Tue Jan 03, 2006 6:18 pm

Re: Trying to use SAY + FONT with Escapement

Postby vilian » Fri Aug 24, 2012 1:22 pm

Kok,

Thus the text comes out with the correct alignment, but you're not using SAY mode DESIGN
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: Trying to use SAY + FONT with Escapement

Postby kok joek hoa » Fri Aug 24, 2012 3:08 pm

dear Vilian,

Try this :

Code: Select all  Expand view
#include "FiveWin.ch"



FUNCTION Main()
LOCAL oWnd,oSay[3],oFont[2]
   
   DEFINE FONT oFont[1] NAME "ARIAL" SIZE 0,20 BOLD;
               NESCAPEMENT 900
         
       
   DEFINE WINDOW oWnd ;//FROM 1,5 TO 20,65;
          TITLE "Testing SAY"

        @ 180, 30 say osay[2] prompt "" of ownd color 0 size 80,200 font oFont[1]   design  update pixel
       
         
 
ACTIVATE WINDOW oWnd MAXIMIZED          ;
        on init osay[2]:SAY(180,30,"THIS DONT SHOW",CLR_BLACK,CLR_YELLOW,oFont[1],.t.,)  ;  
        ON PAINT  osay[2]:SAY(180,30,"THIS DONT SHOW",CLR_BLACK,CLR_YELLOW,oFont[1],.t.,)
                                   


Regards,

kok
kok joek hoa
 
Posts: 117
Joined: Tue Jan 03, 2006 6:18 pm

Re: Trying to use SAY + FONT with Escapement

Postby vilian » Fri Aug 24, 2012 6:56 pm

Thanks, This works ;)
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 106 guests