- Code: Select all Expand view RUN
METHOD RoundBox( nRow, nCol, nBottom, nRight, nWidth, nHeight, oPen, nBGColor )
There was a serious bug in the method. Row was treated as Col and Col was treated as Row. Same way Bottom was treated as Right and Right was treated as Bottom. So the box was drawn at a place and shape different than what is specified.
Let us see an example:
- Code: Select all Expand view RUN
#include "fivewin.ch"
function Main()
local oPrn
PRINT oPrn PREVIEW
PAGE
oPrn:Box( 500, 1000, 1500, 4000 )
oPrn:RoundBox( 1600, 1000, 2600, 4000, 400, 400 )
ENDPAGE
ENDPRINT
return nil
What do we expect?
A wide rectangle on the top and a wide round rectangle of the same size at the bottom of the first rectangle. This is how we expect the boxes to be drawn and FWH1909 draws the boxes correctly like this as intended and expected:
But FWH1906 draws it totally wrong like this:
This was a serious bug that needs to be fixed sometime or other and is fixed in FWH1909.
In addition, the roundbox syntax is made consistent across windows, printer and pdf.
We regret the inconvenience caused to you in the process of fixing the bug. We request you to cooperate.