Control shape management problem

  • Thread starter Thread starter Lorenzo
  • Start date Start date
L

Lorenzo

Hi,
I want to draw 2 controls that have the shape of trapezium.
like these:

___________________
|\ /
| \ t2 /
| \ /
| \ ____________/
| t1 |
|___ |

The problem that i have is that after that i draw the first control
that contains
the first trapezium, the second one is not totally filled.
i think that the first control draw a rectangle, and the second one
can't fill the area that belong to the first one.

I draw the controls in their paint methods with fillpolygon method.

Here is my code:

Dim g As Graphics = Me.CreateGraphics()
Dim _brush As Brush
_brush = New SolidBrush(m_col)
g.FillPolygon(_brush, m_pts)
g.dispose()

How can i draw correctly the 2 controls?
Thanks in advance.
 
I ' m agree with you, but i don't know how to build a region in CF.
There are 2 constructor for the region class.
The first without parameter and the second with a rectangle object.
I have in this case a polygon.
How can set the clipping region for this?

Thank you for your reply.
 
The last I remember, Windows CE didn't support regions that were anything
but rectangular. I think you may have to do your own clipping somehow or
adjust your expectations for what you need to do.

Paul T.
 
Back
Top