Taoyimaier 发表于 2006-3-26 22:31:00

[ARX]调整AcDbText的对齐样式,怎么找不到函数啊

请问,arx中,调整AcDbText的对齐样式,是不是用adjustAlignment函数啊,但是这个函数的参数怎么是一个AcDbDatabase*,我想象中的应该是某个常量(表示是调整,还是左对齐,右对齐啊,等等)吧,让我实在不解,请大家帮我想想办法。

Taoyimaier 发表于 2006-3-28 18:17:00

<P>听版主说,一个问题没有人回答,有2,1就是没有把问题说清楚,2就是别人也不知道(或者说起来太麻烦),我自己另外加了一点3,就是问题太没有水平,不值得一问,我想,我的应该时3吧,</P>
<P>但是,一个函数找不到,。。也没有发现相关的例子,实在很poor啊,希望哪位提示一下,简单的两句话,或者相关内容指点指点,不甚感激</P>

HuaiYu 发表于 2006-3-29 08:43:00

<P class=signature>这是 HELP 中的说明,也看的不是很懂,望有高手翻译一下吧</P>
<P class=signature>virtual Acad::ErrorStatus</P>
<P class=signature>adjustAlignment(const AcDbDatabase* pDb = NULL);</P>
<TABLE class=argumentList>
<TBODY>
<TR vAlign=baseline>
<TD class=argumentName>pDb</TD>
<TD class=argumentDescription>Input pointer to database to be used if the text entity is not in a database (this argument is ignored if the text entity is in a database)</TD></TR></TBODY></TABLE>
<P>Normally when a text entity is closed, the text's position and alignment points are adjusted according to the text's justification settings and the text style. But, if the text entity is embedded in another entity, it will never be closed in which case it won't automatically be adjusted. Or, if the text is added to a transaction before it's first close(), and the graphics are flushed to the screen before the outermost transaction ends, the text will be displayed before the automatic adjustment takes place.</P>
<P>This method allows a way to cause the text to be adjusted on non-database resident text entities or text entities within transactions.</P>
<P>If the text entity is not database resident, then pDb must not be NULL, otherwise Acad::eNoDatabase will be returned. If the text entity is database resident, then the entity's database will be used regardless of the value of pDb.</P>
<P>When this method is called, the database used must also be the current working database (as returned by acdbHostApplicationServices()-&gt;workingDatabase()), the text entity must have non-NULL text string data and a valid text style objectId that resides in the database being used, otherwise Acad::eInvalidContext will be returned.</P>
<P>Returns Acad::eOk if successful.</P>

Taoyimaier 发表于 2006-3-30 21:45:00

原以为有答案了呢,方知道,跟我差不多啊

松竹 发表于 2006-3-30 22:26:00

<P>设置水平对齐方式:setHorizontalMode</P>
<P>设置垂直对齐方式:setVerticalMode</P>

Taoyimaier 发表于 2006-3-31 14:37:00

o,知道了,谢谢啊
页: [1]
查看完整版本: [ARX]调整AcDbText的对齐样式,怎么找不到函数啊