Code: Select all
aTxtPar = DC_GraQueryTextbox(aNameCls[aClustClsNum[j]], oFont) // {101,16} Определяет длину и высоту текста в пикселях для некоторых шрифтов
mMaxlen = MAX(mMaxlen, aTxtPar[1])
Code: Select all
aTxtPar = DC_GraQueryTextbox(aNameCls[aClustClsNum[j]], oFont) // {101,16} Определяет длину и высоту текста в пикселях для некоторых шрифтов
mMaxlen = MAX(mMaxlen, aTxtPar[1])
is oFont a Object ?Eugene Lutsenko wrote:The DC_GraQueryTextbox() function description States that It does not work for all fonts. What fonts does it work for?Code: Select all
aTxtPar = DC_GraQueryTextbox(aNameCls[aClustClsNum[j]], oFont)
or look into _dcfunct.prgArguments:
<cString> is a text string.
<cFont> is a character string containing the name of the font
which conforms to a standard Xbase++ font definition, such as
'12.Arial Bold'.
Code: Select all
FUNCTION DC_GraQueryTextBox( cCaption, cFont, nOption, nMode )
...
IF Valtype(cFont) = 'C'
oXbp:setFontCompoundName(cFont)
ENDIF
...