#include "Fivewin.ch"
Function test()
Local oDl
Local oBtn[3]
Local bGrad2015 := { | lInvert | If( ! lInvert,;
{ { 1, RGB( 244, 244, 245 ), RGB( 244, 244, 245 ) } },;
{ { 1, RGB( 145, 201, 247 ), RGB( 145, 201, 247 ) } } ) }
DEFINE DIALOG oDlg Size 300,400 COLOR CLR_BLACK,CLR_WHITE
@ 10,10 BTNBMP oBtn[1] ;
FILENAME "allegati.bmp" ;
SIZE 45,12 ;
ACTION NIL ;
OF oDlg ;
PROMPT "Allegati" ;
NOROUND LEFT ;
GRADIENT bGrad2015
@ 10,60 BTNBMP oBtn[2] ;
FILENAME "IMG.bmp" ;
SIZE 45,12 ;
ACTION NIL ;
OF oDlg ;
PROMPT "Immagine" ;
NOROUND LEFT ;
GRADIENT bGrad2015
Activate dialog oDlg
Return nil
#include "Fivewin.ch"
Function test()
Local oDl
Local oBtn[3]
Local cCursorBtn:= TCursor():New(,'HAND')
Local bGrad2015 := { | lInvert | If( ! lInvert,;
{ { 1, RGB( 244, 244, 245 ), RGB( 244, 244, 245 ) } },;
{ { 1, RGB( 145, 201, 247 ), RGB( 145, 201, 247 ) } } ) }
DEFINE DIALOG oDlg Size 300,400 COLOR CLR_BLACK,CLR_WHITE
@ 10,10 BTNBMP oBtn1 FILENAME "DLG_ALLEGO.bmp" DEFAULT;
PROMPT "Allegati..." FLAT SIZE 45,15 LEFT PIXEL OF oDlg ;
COLOR CLR_BLACK,CLR_WHITE GRADIENT bGrad2015 NOBORDER
oBtn1:nClrBorder := (IIF(oBtn1:lMOver,,CLR_GRAY))
oBtn1:oCursor := cCursorBtn
@ 10,60 BTNBMP oBtn2 FILENAME "DLG_IMG.bmp" CANCEL;
PROMPT "Immagine..." FLAT SIZE 45,15 LEFT PIXEL OF oDlg ;
COLOR CLR_BLACK,CLR_WHITE GRADIENT bGrad2015 NOBORDER
oBtn2:nClrBorder := (IIF(oBtn2:lMOver,,CLR_GRAY))
oBtn2:oCursor := cCursorBtn
Activate dialog oDlg
Return nil
@ 233, 118 BTNBMP oBtnOK RESOURCE "DLG_OK" ;
PROMPT "&Conferma" FLAT SIZE 45,15 LEFT PIXEL OF oDlg ;
COLOR CLR_BLACK,CLR_WHITE GRADIENT bGrad2015 NOROUND;
ACTION ( oDlg:end( IDOK ) )
@ 233, 182 BTNBMP oBtnCan RESOURCE "DLG_NO" ;
PROMPT "&Annulla" FLAT SIZE 45,15 LEFT PIXEL OF oDlg ;
COLOR CLR_BLACK,CLR_WHITE GRADIENT bGrad2015 NOROUND;
ACTION ( oDlg:end( IDCANCEL ) ) GDIPLUS
oBtnOK:lBorder :=(IIF(!oBtnOK:lMOver,.t.,.f.))
oBtnOK:nClrBorder := (IIF(oBtnOK:lMOver,CLR_GRAY,))
oBtnOK:oCursor := oCursorHand
oBtnCan:lBorder :=(IIF(!oBtnCan:lMOver,.t.,.f.))
oBtnCan:nClrBorder := (IIF( oBtnCan:lMOver,CLR_GRAY,))
oBtnCan:oCursor := oCursorHand
TBtnBmp():lDefaultTheme := .T.
oButton:SetThemed(.T.)
#include "fivewin.ch"
function main()
local oDlg, theme
local oBmp2015
Local bGrad2015 := { | lInvert | If( ! lInvert,;
{ { 1, RGB( 244, 244, 245 ), RGB( 244, 244, 245 ) } },;
{ { 1, RGB( 145, 201, 247 ), RGB( 145, 201, 247 ) } } ) }
DEFINE WINDOW oDlg FROM 0,0 TO 300,300 PIXEL TITLE "Test"
@ 10,10 SAY "custom" PIXEL
TThemed():New(30,10,oDlg,100,30)
@ 200,110 BTNBMP oBmp2015 ; //
PROMPT "&Conferma" FLAT SIZE 100,30 LEFT PIXEL OF oDlg NOROUND;
COLOR CLR_BLACK,CLR_WHITE GRADIENT bGrad2015 ;
ACTION NIL
oBmp2015:nRound:= 0
oBmp2015:SetThemed(.T.)
ACTIVATE WINDOW oDlg CENTERED
return nil
#include "fivewin.ch"
function main()
local oWnd, oBtn
DEFINE WINDOW oWnd FROM 0,0 TO 300,300 PIXEL TITLE "Test"
@ 10,10 BTNBMP oBtn PROMPT "&Conferma" SIZE 100,30 LEFT PIXEL OF oWnd FILE "ok.png" action oWnd:End()
oBtn:SetThemed(.T.)
ACTIVATE WINDOW oWnd CENTERED
return nil
Function test()
Local nBottom := 33
Local nRight := 62
Local nWidth := Max( nRight * DLG_CHARPIX_W, 180 )
Local nHeight := nBottom * DLG_CHARPIX_H
Local oDlg
DEFINE DIALOG oDlg ;
TITLE "test" ;
SIZE nWidth, nHeight PIXEL ;
STYLE nOr( DS_MODALFRAME, WS_POPUP, WS_CAPTION, 4 )
@ 233, 118 BTNBMP oBtnOK OF oDlg ;
SIZE 55, 14 PIXEL ;
LEFT ;
PROMPT "&Conferma" FILENAME "DLG_OK.bmp" ;
ACTION ( oDlg:end( IDOK ) )
@ 233, 182 BTNBMP oBtnCan OF oDlg ;
SIZE 55, 14 PIXEL ;
BORDER LEFT ROUND ;
PROMPT "&Annulla" FILENAME "DLG_no.bmp" ;
ACTION ( oDlg:end( IDCANCEL ) )
oBtnOK:SetThemed(.T.)
oBtnOK:nRound:= 0
ACTIVATE DIALOG oDlg
can I have the modifies of nclrborder ?
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 53 guests