FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ERROR WITH TTITLE
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
ERROR WITH TTITLE
Posted: Wed Sep 24, 2014 01:24 PM
I have a strange error with Ttitle , if I insert a siaze sample SIZE oDlgLicenza:nwidth it draw the ttitle until a x coordinate and not at the end of the dialog ....see the picture !! WHY ????




the source code
Code (fw): Select all Collapse
#include "FiveWin.ch"
#include "constant.ch"
#include "dtpicker.ch"
#include "ttitle.ch"

#define NOME_PROGRAMMA_TITLE  "test"
#define LIGHTCYAN        nRGB( 203, 225, 252 )

Function Test()
   Local oDlgLicenza
   Local  nBottom   := 27
   Local  nRight    := 60
   Local  nWidth :=  Max( nRight * DLG_CHARPIX_W, 180 )
   Local  nHeight := nBottom * DLG_CHARPIX_H
   Local  aProf[13]
 DEFINE DIALOG oDlgLicenza          ;
         SIZE nWidth, nHeight   PIXEL  ;
          TITLE "Registrazione "+NOME_PROGRAMMA_TITLE

 oPages := TPages():New(00,0, oDlgLicenza:nHeight-50,oDlgLicenza:nWidth, oDlgLicenza)


// one page 
 DEFINE DIALOG oDlg1  OF oPages   STYLE WS_CHILD    SIZE 200, nHeight

   @ 0,00 TITLE  oTitle1  OF oDlg1 SIZE 500,40 NOBORDER SHADOW NOSHADOW     ;
                              GRADIENT { { 1, RGB(151,154,173), CLR_BLACK } }

   @ 10, 12 TITLETEXT OF oTitle1 TEXT "Inserire la chiave di attivazione del programma." FONT oFontBold COLOR CLR_WHITE
  

//two page
 DEFINE DIALOG oDlg2  OF oPages   STYLE WS_CHILD

    @ 0,0 TITLE  oTitle2  OF oDlg2 size 500, 30 NOBORDER SHADOW NOSHADOW   ;
                               GRADIENT { { 1, RGB(151,154,173), CLR_RED } }

     @ 10, 12 TITLETEXT OF oTitle2 TEXT "Inserire i tuoi dati." FONT oFontBold COLOR CLR_WHITE




oPages:AddPage( oDlg2 )
       oPages:SetOption( 1 )


@ 185,55 BUTTON obtnPre PROMPT "< Indietro"  SIZE 40, 12 ACTION oPages:GoPrev()  PIXEL  OF oDlgLicenza
      @ 185,98 BUTTON obtnNext PROMPT "Avanti >"   SIZE 40, 12 ACTION oPages:GoNext()  PIXEL  OF oDlgLicenza
      @ 185,140 BUTTON obtnExit PROMPT "Annulla"  SIZE 40, 12 ACTION ( oDlgLicenza:end( IDCANCEL ) )  PIXEL  OF oDlgLicenza



      ACTIVATE DIALOG oDlgLicenza ;
       ON INIT oPages:Move( 0, 0, oDlgLicenza:nWidth-20, oDlgLicenza:nHeight-80 )

retu nil
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: ERROR WITH TTITLE
Posted: Wed Sep 24, 2014 02:17 PM
Silvio,

just delete -20 ( the title belongs to the page )

ACTIVATE DIALOG oDlgLicenza ;
ON INIT oPages:Move( 0, 0, oDlgLicenza:nWidth-20, oDlgLicenza:nHeight-80 )



best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: ERROR WITH TTITLE
Posted: Wed Sep 24, 2014 03:37 PM

thanks

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion