查看单个帖子
旧 2009-05-07, 05:37 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】undo-problem

undo-problem
undo-problem
hi,
i have a problem with undo. i load a dxf/dwg-file, call startundorecording(); and then i change the color of some entities.
when i make undo (), i get the message "undo-operation is not available".
i don't now why this happend...
mathias
you class derived from oddbhostappservices must implement function newundocontroller() to enable undo functionality.
see odamfcapp sample: odamfcappapp::newundocontroller() returns an object implementing undo controller interface.
its sample implementaion is in examples/exservices folder.
sergey slezkin

ah!
thanks, this function was the problem. it works fine, now.
mathias
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)