I tried to draw it
But I have problems I not understood why not write the text
I made
- Code: Select all Expand view RUN
- function Test()
local oDlg, oBtn, oBold, oFont
local nRow, nCol, n
local cPrice:="€5.00"
Local cDesc:="OMBRELLONE"
Local fromdate :=date()
Local todate :=date()
Local nOmbrellone:= 13
Local ggiorni:= 1
DEFINE FONT oBold NAME "TAHOMA" SIZE 0,-14 BOLD
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-12
DEFINE DIALOG oDlg SIZE 700,400 PIXEL TRUEPIXEL FONT oFont
nRow := 20
nCol := 20
@ nRow,nCol BTNBMP oBtn ;
PROMPT cDesc + CRLF+ CRLF+;
SPACE(20)+ dtoc(fromdate)+ CRLF +;
SPACE(20)+ dtoc(todate) ;
SIZE 550, 100 PIXEL OF oDlg FLAT RIGHT ;
TOOLTIP "fai click per aggiungere un servizio" ;
COLOR CLR_CYAN,CLR_WHITE
oBtn:bPainted := { |hDC| FW_DrawImage( hDC, "ombrellone.bmp", { 2, 1, 124, 62 } ), ;
FW_SayText( hDC, oBtn, { 67, 61, 54, 75 },str(nOmbrellone),oBold, CLR_HRED, nARGB(255,CLR_YELLOW), .t. ),;
FW_SayText( hDC, oBtn, { 117, 71, 74, 95 },cPrice,oBold, CLR_HRED, nARGB(255,CLR_YELLOW), .t. )}
oBtn:oFontBold := oBold // <-- NOTE RGB( 225, 225, 225 )
oBtn:nClrBorder := { || (IIF(oBtn:lMOver,CLR_BLUE,CLR_RED)) }
oBtn:bClrGrad = { | lInvert | If( ! lInvert,;
{ { 1, CLR_WHITE, CLR_WHITE } },;
{ { 1, RGB( 229,241,251 ), RGB( 229,241,251 ) } } ) }
oBtn:SetThemed(.T.) // ???????
ACTIVATE DIALOG oDlg CENTERED
RELEASE FONT oFont, oBold
return nil