![]() |
【转帖】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. |