|
fhhrbzbthir.png
如图所未,生成后文字因标尺太短,变成了很多行,如何像右下角那样保持一行?
AcDbObjectId CCreatEnt::AddMText( const AcGePoint3d& ptInsert, const TCHAR* text,
AcDbObjectId style, double height, double width )
{
AcDbMText *pMText = new AcDbMText();
// 设置多行文字的特性
pMText->setTextStyle(style);
pMText->setContents(text);
pMText->setLocation(ptInsert);
pMText->setTextHeight(height);
pMText->setWidth(width);
pMText->setAttachment(AcDbMText::kBottomLeft);
return CCreatEnt::PostToModelSpace(pMText);
}
// 创建多行文字
ptInsert.set(0, 0, 0);
CCreatEnt::AddMText(ptInsert, TEXT("学习和使用ObjectARX需要付出你的努力."));
请问如何设置才能实现不要
?
|
|