PROBLEM ON BTNBMP

PROBLEM ON BTNBMP

Postby Silvio.Falconi » Sat Feb 06, 2016 9:12 am

i MADE :

@ 100, 16 BTNBMP oBtnCon OF oDlgPsw ;
SIZE 45,12 PIXEL 2007 ;
BORDER LEFT ROUND ;
PROMPT i18n("&Conferma") RESOURCE "DLG_OK" ;
ACTION (oDlgPsw:end( IDOK ) )

@ 100, 65 BTNBMP oBtnCan OF oDlgPsw ;
SIZE 45,12 PIXEL 2007 ;
BORDER LEFT ROUND ;
PROMPT i18n("&Annulla") RESOURCE "DLG_NO" ;
ACTION (oDlgPsw:end( IDCANCEL ) )


oBtnCon:bClrGrad = bClrGrad_2010
oBtnCon:oCursor := oCursorBtn
oBtnCon:cTooltip := i18n("Conferma la copia di salvataggio archivi")
oBtnCon:SetColor( 0, )

oBtnCan:bClrGrad = bClrGrad_2010
oBtnCan:oCursor := oCursorBtn
oBtnCan:cTooltip := i18n("Annulla")
oBtnCan:SetColor( 0, )


GIVE ME NUMERIC ERROR WHY ?

i MADE A TEST PRG AND IT RUN OK
WHEN i COPY THIS LINE ON MY APPLICATION IT MAKE ERROR


IF i MADE

@ 100, 16 BTNBMP oBtnCon ;
RESOURCE "DLG_OK" ;
SIZE 45,12 ;
ACTION (oDlgPsw:end( IDOK ) ) ;
OF oDlgPsw ;
MESSAGE "Conferma" ;
PROMPT i18n("&Conferma") ;
FONT ::Font ;
TOOLTIP "Conferma" ;
LEFT ;
2007 ;
GRADIENT bClrGrad_2010 ;
COLOR 0, ; ;
PIXEL


GIVE THE SAME ERROR INVALID NUMERIC WHY ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: PROBLEM ON BTNBMP

Postby Silvio.Falconi » Sat Feb 06, 2016 12:16 pm

I made now:

oBtnCon:=TBtnBmp():New( 60, 16, 45, 12,;
"DLG_OK", , , ,;
{ ||(oDlgPsw:end( IDOK ) ) }, oDlgPsw, , , , ,;
"Conferma", , , , .t.,"LEFT" , ;
.t., , , , "Conferma", .t.,;
bClrGrad_2010, .t., , , , , )


and it run ok

Antonio there is an error perhaps on fivewin.ch ( fwh16.02) because I cannot create btnbmp from FiveWin main Header File
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: PROBLEM ON BTNBMP

Postby ukoenig » Mon Feb 08, 2016 7:13 pm

Silvio,

I think the error comes from ; ; after color :

@ 100, 16 BTNBMP oBtnCon ;
RESOURCE "DLG_OK" ;
SIZE 45,12 ;
ACTION (oDlgPsw:end( IDOK ) ) ;
OF oDlgPsw ;
MESSAGE "Conferma" ;
PROMPT i18n("&Conferma") ;
FONT ::Font ;
TOOLTIP "Conferma" ;
LEFT ;
2007 ;
GRADIENT bClrGrad_2010 ;
COLOR 0, ; ; // !!!!!
PIXEL

#xcommand @ <nRow>, <nCol> BTNBMP [<oBtn>] ;
[ <resource: NAME, RESNAME, RESOURCE> <cResName1> ;
[,<cResName2>[,<cResName3>[,<cResName4>] ] ] ] ;
[ <file: FILE, FILENAME, DISK, BITMAP> <cBmpFile1> ;
[,<cBmpFile2>[,<cBmpFile3>[,<cBmpFile4>] ] ] ] ;
[ SIZE <nWidth>, <nHeight> ] ;
[ ACTION <uAction,...> ] ;
[ <of:OF, WINDOW, DIALOG> <oWnd> ] ;
[ MESSAGE <cMsg> ] ;
[ WHEN <uWhen> ] ;
[ <adjust: ADJUST> ] ;
[ <lUpdate: UPDATE> ] ;
[ PROMPT <cPrompt> ] ;
[ FONT <oFont> ] ;
[ TOOLTIP <cToolTip> ] ;
[ <lNoBorder: NOBORDER> ] ;
[ <lFlat: FLAT> ] ;
[ <layout: CENTER, TOP, LEFT, BOTTOM, RIGHT> ] ;
[ <l2007: 2007> ] ;
[ <lTrans: TRANSPARENT> ] ;
[ <lNoRound: NOROUND> ];
[ GRADIENT <bGradColors> ];
[ COLOR <nClrFore> [,<nClrBack>] ] ;
[ <pixel: PIXEL> ] ;
[ <design: DESIGN> ] ;
[ <lGDIP: GDIP, GDIPLUS> ];


best regard
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: PROBLEM ON BTNBMP

Postby Silvio.Falconi » Wed Feb 10, 2016 3:52 pm

See the first topic pleaae
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

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