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

can view::update utilize a progressmeter
can view::update utilize a progressmeter
hi,
is there a way to receive progress calls (through an instance of oddbhostappprogressmeter) while updating a view? i've written an import filter based on the exvectorize example. after i open a dwg file, which calls and updates my progressmeter correctly, i call mybasedevice::update, which calls mybaseview::update, which draws everything in the document. for it usually takes more time to draw (import) a document then just to open it, i'd like to to have a progress bar for the update as well. does anybody know how to set the device or the view classes to utilize a progressmeter?
thanks
arno歵
i think there may be a need for a callback from gs lib for this.
well, i've had to solve this, so i overrode the update method where i first iterate through the current database to figure how many entities will be (probably) sent to draw. then, in draw method, i increment a counter and calculate the actual progress. of course i have to watch recursivity and that is sort of tricky. definitely not an exact science. therefore i would appreciate if i could assign a progress meter either to my context or view.
arno歵
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)