A few versions ago I asked you a solution to make the width work in the CmSay or InchSay instructions.
This were the changes you told me to do :
You asked me to replace these lines
Code: Select all
METHOD CmSay( nRow, nCol, cText, oFont, nWidth, nClrText, nBkMode, nPad );
INLINE ;
(::Cmtr2Pix(@nRow, @nCol ),;
::Say( nRow, nCol, cText, oFont, nWidth, nClrText, nBkMode, nPad ))
METHOD InchSay( nRow, nCol, cText, oFont, nWidth, nClrText, nBkMode, nPad );
INLINE ;
(::Inch2Pix(@nRow, @nCol),;
::Say( nRow, nCol, cText, oFont, nWidth, nClrText, nBkMode, nPad ) )
Code: Select all
METHOD CmSay( nRow, nCol, cText, oFont, nWidth, nClrText, nBkMode, nPad, lO2A );
INLINE ;
(::Cmtr2Pix( @nRow, @nCol ),;
If( nWidth # Nil, ( ::Cmtr2Pix( 0, @nWidth ), nWidth += ::nYOffset ), Nil ),;
::Say( nRow, nCol, cText, oFont, nWidth, nClrText, nBkMode, nPad, lO2A ))
METHOD InchSay( nRow, nCol, cText, oFont, nWidth, nClrText, nBkMode, nPad, lO2A );
INLINE ;
(::Inch2Pix( @nRow, @nCol ),;
If( nWidth # Nil, ( ::Inch2Pix( 0, @nWidth ), nWidth += ::nYOffset ), Nil ),;
::Say( nRow, nCol, cText, oFont, nWidth, nClrText, nBkMode, nPad, lO2A ))
Thanks.