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
"Lorenzo" <lorenzo.fornarelli@framenet.it> wrote in message
news:dfc8688d-c2cb-4769-ba29-c8fa2423142d@t54g2000hsg.googlegroups.com...
>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.
>
>
>
> On 24 Mar, 16:56, "Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com>
> wrote:
>> You likely need to set the clipping region for the shapes.
>>
>> --
>>
>> Chris Tacke, Embedded MVP
>> OpenNETCF Consulting
>> Giving back to the embedded community
http://community.OpenNETCF.com >>
>> "Lorenzo" <lorenzo.fornare...@framenet.it> wrote in message
>>
>> news:5bb948a1-51db-4573-94a9-4845adb38cd3@x41g2000hsb.googlegroups.com...
>>
>> > 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.
>