乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 76|回复: 5

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

[复制链接]

27

主题

105

帖子

5

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
213
发表于 2006-3-26 22:31:00 | 显示全部楼层 |阅读模式
请问,arx中,调整AcDbText的对齐样式,是不是用adjustAlignment函数啊,但是这个函数的参数怎么是一个AcDbDatabase*,我想象中的应该是某个常量(表示是调整,还是左对齐,右对齐啊,等等)吧,让我实在不解,请大家帮我想想办法。
回复

使用道具 举报

27

主题

105

帖子

5

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
213
发表于 2006-3-28 18:17:00 | 显示全部楼层
听版主说,一个问题没有人回答,有2,1就是没有把问题说清楚,2就是别人也不知道(或者说起来太麻烦),我自己另外加了一点3,就是问题太没有水平,不值得一问,我想,我的应该时3吧,
但是,一个函数找不到,。。也没有发现相关的例子,实在很poor啊,希望哪位提示一下,简单的两句话,或者相关内容指点指点,不甚感激
回复

使用道具 举报

16

主题

160

帖子

7

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
224
发表于 2006-3-29 08:43:00 | 显示全部楼层
这是 HELP 中的说明,也看的不是很懂,望有高手翻译一下吧
virtual Acad::ErrorStatus
adjustAlignment(const AcDbDatabase* pDb = NULL);
pDb
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)
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.
This method allows a way to cause the text to be adjusted on non-database resident text entities or text entities within transactions.
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.
When this method is called, the database used must also be the current working database (as returned by acdbHostApplicationServices()->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.
Returns Acad::eOk if successful.
回复

使用道具 举报

27

主题

105

帖子

5

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
213
发表于 2006-3-30 21:45:00 | 显示全部楼层
原以为有答案了呢,方知道,跟我差不多啊
回复

使用道具 举报

0

主题

38

帖子

1

银币

初来乍到

Rank: 1

铜币
38
发表于 2006-3-30 22:26:00 | 显示全部楼层
设置水平对齐方式:setHorizontalMode
设置垂直对齐方式:setVerticalMode
回复

使用道具 举报

27

主题

105

帖子

5

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
213
发表于 2006-3-31 14:37:00 | 显示全部楼层
o,知道了,谢谢啊
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-2-5 16:40 , Processed in 0.161419 second(s), 64 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表