FW_Box( hDC, { nX, nY, nX + nSize, nY + nSize }, RGB(243, 101, 108), RGB(243, 101, 108), , 2 )
nageswaragunupudi wrote:
- Code: Select all Expand view
FW_Box( hDC, { nX, nY, nX + nSize, nY + nSize }, RGB(243, 101, 108), RGB(243, 101, 108), , 2 )
This should work.
local nClr := RGB(243, 101, 108)
DEFINE WINDOW oWnd SIZE 200,200 PIXEL
oWnd:bPainted := { |hDC| FW_Box( hDC, { 20,20,120,120 }, { nClr, 3 }, nil, , 2 ) }
nageswaragunupudi wrote:If a color or pen is specified as 3rd parameter, only that color/pen is used and it never uses black color.
As a test you may check
- Code: Select all Expand view
local nClr := RGB(243, 101, 108)
DEFINE WINDOW oWnd SIZE 200,200 PIXEL
oWnd:bPainted := { |hDC| FW_Box( hDC, { 20,20,120,120 }, { nClr, 3 }, nil, , 2 ) }
The circle is drawn with the specified color only but not black.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 45 guests