> I can't find any method to let wxDC use a void pen.
> Anyone can help me? Thanks.
You use a transparent pen : wxTRANSPARENT_PEN
and a not transparent brush, for example : wxBLUE_BRUSH
For example to draw a blue rectangle with no border :
SetBrush(*wxBLUE_BRUSH);
SetPen(*wxTRANSPARENT_PEN);
DrawRectangle(x,y,x1,y1);
Lionel Allorge
E-mail : lionel....@lunerouge.com
Site : http://www.lunerouge.com
> I can't find any method to let wxDC use a void pen.
> Anyone can help me? Thanks.
use a "transparent" pen. One note of caution, previous versions would give
you a rectangle with a transparent border line, i.e. a rectangle that is one
linewidth (pixel?) smaller in each direction - I'm not sure if this got
changed in official version but we hacked our own copy to get full size
rectangles.
Regards
Dominic
> > I can't find any method to let wxDC use a void pen.
> > Anyone can help me? Thanks.
>
> use a "transparent" pen. One note of caution, previous versions would give
> you a rectangle with a transparent border line, i.e. a rectangle that is
one
> linewidth (pixel?) smaller in each direction - I'm not sure if this got
> changed in official version but we hacked our own copy to get full size
> rectangles.
> Regards
> Dominic
Well, the function is working ok for me. If you ask for a transparent pen,
it draw the line transparent !
Maybe we should create a real void pen with a size = 0.
> > I can't find any method to let wxDC use a void pen.
> > Anyone can help me? Thanks.
>
>use a "transparent" pen. One note of caution, previous versions would give
>you a rectangle with a transparent border line, i.e. a rectangle that is one
>linewidth (pixel?) smaller in each direction - I'm not sure if this got
>changed in official version but we hacked our own copy to get full size
>rectangles.
It got changed in the official version and now you get full size rectangles.
Regards,
G.
--
Guillermo Rodríguez García
<gui...@iies.es>