高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】problems with odgibasedrawobjectsetcolor90, please help
problems with odgibasedrawobject::setcolor(), please help
problems with odgibasedrawobject::setcolor(), please help
hi,
i moved 2 days ago from 1.08 to 1.09.
rendering was ok in the previous release, but now it seems that the virtual method setcolor(oduint16 color) of my odgsbaseview derived object is not called anymore, so i don't know at what point to change the color in our rendering machine.
can someone help me with this?
thanks in advance for any help.
best regards
chudomir
it should be overridden and handled at
void exgsgdidevice::draw_color(colorref rgb)
{
if(m_currgb!=rgb)
{
m_bbrushvalid = m_bpenvalid = false;
m_currgb = rgb;
}
}
within exgsgdidevice.cpp.
thank you for your reply.
but it comes through setcurrtraits(), while i wanted to handle the direct set of the current color in the view-derived class (when it is set by the dwgdirect core). anyway, i'll goi through setcurrtraits() now...
thanks again.
regards
chudomir
|