REDEFINE BTNBMP aoBtns[ 1 ] ID 301 OF oDlg RESOURCE "Save32" TOOLTIP "Save to Disk" NOBORDER ;
ACTION (!empty( odbf:VarType ) .or. !NoBlankRecord( odbf, "Type" ) .or. !odbf:isadd) .and. ;
( iif( odbf:IsAdd, odbf:append(), ), ;
odbf:save(), odbf:IsAdd := .f., .t. ), ;
obrw:refresh(), odlg:end()
REDEFINE BTNBMP aoBtns[ 2 ] ID 302 OF oDlg RESOURCE "Exit32" TOOLTIP "Exit" NOBORDER ACTION odlg:end()
aeval( aoBtns, { |e| e:ltransparent := .t., e:oCursor := ocursor } )
REVENUECODES DIALOG 6, 15, 225, 150
STYLE DS_SETFONT |DS_MODALFRAME |WS_OVERLAPPED |WS_VISIBLE |WS_CAPTION
CAPTION "Revenue Code Detail"
FONT 8, "MS Sans Serif"
LANGUAGE LANG_NEUTRAL, 0
BEGIN
CONTROL "",502,"STATIC",SS_BLACKFRAME |WS_CHILD |WS_VISIBLE ,5,5,212,100
CONTROL "",101,"EDIT",ES_NOHIDESEL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP ,64,15,36,12
CONTROL "",102,"EDIT",ES_NOHIDESEL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP ,64,28,144,12
CONTROL "",103,"EDIT",ES_NOHIDESEL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP ,64,41,63,12
CONTROL "",104,"EDIT",ES_NOHIDESEL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP ,64,54,63,12
CONTROL "",105,"EDIT",ES_NOHIDESEL |ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP ,64,67,63,12
CONTROL "Rev-Code",65535,"STATIC",SS_RIGHT |WS_CHILD ,6,17,54,8
CONTROL "Description",65535,"STATIC",SS_RIGHT |WS_CHILD ,6,31,54,8
CONTROL "GL-Acc IN",65535,"STATIC",SS_RIGHT |WS_CHILD ,6,44,54,8
CONTROL "GL-Acc OUT",65535,"STATIC",SS_RIGHT |WS_CHILD ,6,56,54,8
CONTROL "Serv-Code",65535,"STATIC",SS_RIGHT |WS_CHILD ,6,68,54,8
CONTROL "",301,"TBTNBMP",WS_CHILD |0xF0B,142,116,36,30
CONTROL "",302,"TBTNBMP",WS_CHILD |0xF0B,182,116,36,30
CONTROL "Edit5",106,"EDIT",ES_LEFT |WS_CHILD |WS_BORDER |WS_TABSTOP |WS_VISIBLE ,64,80,63,14
CONTROL "Cost Ratio",1,"STATIC",SS_RIGHT |WS_CHILD |WS_GROUP |WS_VISIBLE ,20,83,39,8
END
elseif IsAppThemed() .or. !::lTransparent
PalBtnPaint( ::hWnd, if( ::lMOver .and. !Empty( ::hBitmap4 ), ::hBitmap4, ::hBitmap1 ),;
if( ::lMOver .and. !Empty( ::hBitmap4 ), ::hPalette4, ::hPalette1 ),;
if ( ::lAdjust .and. empty( ::hBitmap2 ), ::hBitmap1,::hBitmap2 ),;
if ( ::lAdjust .and. empty( ::hBitmap2 ), ::hPalette1,::hPalette2),;
::hBitmap3, ::hPalette3, ::lPressed, ::lAdjust, ::lBorder,;
::oPopup != nil,;
::nClrPane, if ( ::cCaption == "...", ::cCaption,) , ::nLayout,;
If( ::oFont != nil, ::oFont:hFont, 0 ),;
If( ValType( ::nClrText ) == "B", Eval( ::nClrText, ::lMOver ), ::nClrText ), ::hDC,;
Upper( ::oWnd:ClassName() ) != "TBAR" )
elseif IsAppThemed()
if !::lTransparent
PalBtnPaint( ::hWnd, if( ::lMOver .and. !Empty( ::hBitmap4 ), ::hBitmap4, ::hBitmap1 ),;
if( ::lMOver .and. !Empty( ::hBitmap4 ), ::hPalette4, ::hPalette1 ),;
if ( ::lAdjust .and. empty( ::hBitmap2 ), ::hBitmap1,::hBitmap2 ),;
if ( ::lAdjust .and. empty( ::hBitmap2 ), ::hPalette1,::hPalette2),;
::hBitmap3, ::hPalette3, ::lPressed, ::lAdjust, ::lBorder,;
::oPopup != nil,;
::nClrPane, if ( ::cCaption == "...", ::cCaption,) , ::nLayout,;
If( ::oFont != nil, ::oFont:hFont, 0 ),;
If( ValType( ::nClrText ) == "B", Eval( ::nClrText, ::lMOver ), ::nClrText ), ::hDC,;
Upper( ::oWnd:ClassName() ) != "TBAR" )
else
hBmpOld = SelectObject( ::hDC, hBmp )
nZeroZeroClr = GetPixel( ::hDC, 0, 0 )
SelectObject( ::hDC, hBmpOld )
nOldClr = SetBkColor( ::hDC, nRGB( 255, 255, 255 ) )
TransBmp( hBmp, nBmpWidth, nBmpHeight, nZeroZeroClr, ::hDC,;
if( ::lAdjust, nAdjust, nBmpLeft + nAdjust ), ;
if( ::lAdjust, nAdjust, nBmpTop + nAdjust ),;
if (::lAdjust, ::nWidth, nBmpWidth ) ,;
if( ::lAdjust, ::nHeight, nBmpHeight ) )
SetBkColor( ::hDC, nOldClr )
endif
else
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 110 guests