Hi all,

I want to paint a grid with dotted lines within a WPaintedWidget. But it 
seems to me that WPen::setStyle(DotLine) does not work. Tested with 
latest Firefox and Chrome...

Here is the code I use:

WPen pen = painter.pen();
pen.setColor(WColor(0,0,0, 255));
pen.setWidth(1.0);
pen.setStyle(DotLine);
painter.setPen(pen);

double step = rect.width() * (mStep/mTotalRT);
double x = rect.left();

while(x<rect.right())
{
    painter.drawLine(crisp(x),  crisp(ylineend), crisp(x),  crisp(yline));
    x += step;
}

Regards,
Stefan

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to