Alaska Software Inc. - xbpsatic
Username: Password:
AuthorTopic: xbpsatic
Jorgexbpsatic
on Sun, 07 Sep 2008 10:07:26 -0300
i have this code, and i can't to center the text horizontal and vertically


The text is positioned on the top part of the xbpstatic()

can anybody tellme to center the text horizontal and vertically in the 
middle of my xbpstatic()
here the code

      cStr :="Linea 1"                         + Chr( 13 ) + Chr( 10 ) + ;
                " ----   Linea 2 ---------" + Chr( 13 ) + Chr( 10 ) + ;
                " ----   Linea 3 ----"
      ::oMen :=XbpStatic():New( oParent, , { 1, 1 },;
                                                                { 640, 
480 },;
                                                                { { 
XBP_PP_BGCLR, 10 },;
                                                                   { 
XBP_PP_FGCLR, GRA_CLR_WHITE } } )
      ::oMen:clipSiblings := .T.
      ::oMen:type := XBPSTATIC_TYPE_TEXT
      ::oMen:options := XBPSTATIC_TEXT_WORDBREAK + ;
                                 XBPSTATIC_TEXT_VCENTER +;
                                 XBPSTATIC_TEXT_CENTER
      ::oMen:caption :=cStr

Regards