bPaintTxt := < | oSelf |
local hOldFont, nClrTxt, nOldClr, nMode
hOldFont = SelectObject( hDCMem, oSelf:oFont:hFont )
if ValType( oSelf:aClrTabTxt[ nPrompt ] ) == "N"
nClrTxt = oSelf:aClrTabTxt[ nPrompt ]
elseif ValType( oSelf:aClrTabTxt[ nPrompt ] ) == "B"
nClrTxt = Eval( oSelf:aClrTabTxt[ nPrompt ], oSelf )
else
nClrTxt = CLRTEXT
endif
if nPrompt == oSelf:nStart
nClrTxt = CLR_WHITE
endif
//@Otto
if nType = 3
nClrTxt = CLR_GREEN
endif
//@Otto
nOldClr = SetTextColor( hDCMem, if( oSelf:aEnable[ nPrompt ], nClrTxt, GetSysColor( COLOR_GRAYTEXT ) ) )
nMode = SetBkMode( hDCMem, TRANSPARENT )
DrawText( hDCMem, oSelf:aPrompts[ nPrompt ], { nRow+2, nCol, nRow + oSelf:nHeightFld+1, nCol + oSelf:aSizes[ nPrompt ] }, ;
nOr( DT_SINGLELINE, DT_VCENTER, DT_CENTER, DT_NOPREFIX ) )
SetBkMode(hDCMem, nMode )
SetTextColor( hDCMem, nOldClr )
SelectObject( hDCMem, hOldFont )
return nil
>
oRibbon:nClrPaneRB := 16641734 // Background-Color
oRibbon:nTop := 25
oRibbon:nHeight := 200
oRibbon:nGroupSeparation := 20
oRibbon:oFont := oFont // Tab-Fonts
oRibbon:nHeightFld := 30 // Folder-Tab--Height
oRibbon:nClrBoxSelIn := 32768
oRibbon:aGradFld := {| nOpt | if( nOpt == oRibbon:nStart, { { 1, 16777215, 8293112 } },; // Tabcolor
{ { 1, 8293112, 16777215 } } ) }
oRibbon:aGradOver := { { 1, 13873022, 16777215 } } // Folder-Mouse-Focus
oRibbon:nClrPaneRB := 14856016 // Background blue
oRibbon:aClrTabTxt[1] := 16750487
oRibbon:aClrTabTxt[2] := 7303167
oRibbon:aClrTabTxt[3] := 65535
oRibbon:aClrTabTxt[4] := 4259584
oRibbon:aClrTabTxt[5] := 8114941
oRibbon:bMMoved := { |nRow, nCol | n := oRibbon:nOverPrompt( nRow, nCol ), ;
oRibbon:aClrTabTxt[1] := 16750487, ;
oRibbon:aClrTabTxt[2] := 7303167, ;
oRibbon:aClrTabTxt[3] := 65535, ;
oRibbon:aClrTabTxt[4] := 4259584, ;
oRibbon:aClrTabTxt[5] := 8114941, ;
IIF( n = 1, oRibbon:aClrTabTxt[1] := 0, NIL ), ;
IIF( n = 2, oRibbon:aClrTabTxt[2] := 0, NIL ), ;
IIF( n = 3, oRibbon:aClrTabTxt[3] := 0, NIL ), ;
IIF( n = 4, oRibbon:aClrTabTxt[4] := 0, NIL ), ;
IIF( n = 5, oRibbon:aClrTabTxt[5] := 0, NIL ), oRibbon:Refresh() }
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 117 guests