SetClippingRegion question Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
maxinuruguay
I live to help wx-kind
I live to help wx-kind
Posts: 198
Joined: Sat Oct 28, 2006 3:36 am

SetClippingRegion question

Post by maxinuruguay »

Say I have a wxClientDC and I set the clipping region to (300, 300, w = 100, h = 100). Does that mean that if I draw to the DC at 0,0 it will show at x=300, y=300? That's how I always thought it worked however when my code draws at 0,0 it shows up at 0,0. I must be misunderstanding. Thanks. Any help is appreciated. maxinuruguay
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria »

I *think* that it will only let you draw within the bounds you specified, i.e. anything you draw outside of that will not show up.
Sof_T
Can't get richer than this
Can't get richer than this
Posts: 864
Joined: Thu Jul 28, 2005 9:48 pm
Location: New Forest, United Kingdom
Contact:

Post by Sof_T »

As Auria says it means that anything you draw outside this region will be clipped, that is it will not be shown. I think the way you are thinking of it is more in the way that viewports work.
The home of Sof.T http://www.sof-t.site88.net/
Author of Programming with wxDevC++
http://sourceforge.net/projects/wxdevcpp-book/
Post Reply