test.prg
- Code: Select all Expand view RUN
#include "Fivewin.ch"
#include "constant.ch"
#define LIGHTCYAN nRGB( 203, 225, 252 )
Function ZipBackup()
LOCAL oDlg, oLbx, oCol
Local oBtnOk,oBtnNO ,oBtnConf
Local nBottom := 24
Local nRight := 51.9
Local nWidth := Max( nRight * DLG_CHARPIX_W, 180 )
Local nHeight := nBottom * DLG_CHARPIX_H
Local bClrGrad := { | lPressed | If( ! lPressed,;
{ { 1, nRGB( 253, 254, 255 ), nRGB( 179, 217, 255 ) } },;
{ { 1, nRGB( 179, 217, 255 ), nRGB( 253, 254, 255 ) } } ) }
DEFINE DIALOG oDlg SIZE nWidth, nHeight TRANSPARENT ;
TITLE " - creare una copia di salvataggio" ;
GRADIENT { { 1,CLR_WHITE, LIGHTCYAN } }
@ 163, 90 BTNBMP oBtnOK PROMPT "&Conferma" RESOURCE "DLG_OK" SIZE 50, 15 ;
LEFT NOBORDER ACTION ( oDlg:end( IDOK ) )
oBtnOK:bClrGrad := bClrGrad
@ 163, 145 BTNBMP oBtnCan PROMPT "&Annulla" RESOURCE "DLG_NO" SIZE 50, 15 ;
LEFT NOBORDER 2007 ;
ACTION ( oDlg:end( IDCANCEL ) )
oBtnCan:bClrGrad := bClrGrad
ACTIVATE DIALOG oDlg
return nil
I use these bmps
DLG_NO.bmp
DLG_OK.bmp
I saw also if change the size SIZE 50, 15 into SIZE 45, 12 perhaps it run but I not understood why ...
thanks