几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】mtext background mask fill color bug (http://www.dimcax.com/hust/showthread.php?t=17267)

yang686526 2009-05-06 06:10 PM

【转帖】mtext background mask fill color bug
 
mtext background mask fill color bug?
mtext background mask fill color bug?
when oddbmtext::usebackgroundcoloron() is true or when "fill color" is set to use the "background color", the color is always black, instead of the device or screen background color.
steps to reproduce:
1. create an mtext and add background mask
2. check the checkbox in "fill color" to "use background"
3. update odamfcapp\dwgviewer.cpp
m_pdevice->setbackgroundcolor(odrgb(0,255,0)); // green
4. compile and run odamfcapp.exe
4. open the drawing containing the mtext, then view the drawing
the screen graphics background is green. the mtext is set to use the screen backgound, but it is using black instead.
is this a known bug?
thanks,
codey
there is no bug.
quote:
originally posted by codey
3. update odamfcapp\dwgviewer.cpp
m_pdevice->setbackgroundcolor(odrgb(0,255,0)); // green
add string here
theapp.setactivebackground(odrgb(0,255,0));
or without any changes use menu item "format\background color..." in odamfcapp.exe.
--
best regards,
sergey z.
thanks sergey.
my app was not calling odgicontextfordbdatabase::setpalettebackground(... ) and it works now.
codey


所有的时间均为北京时间。 现在的时间是 03:31 AM.