[Mono-winforms-list] Clipping
Jonathan S. Chambers
Jonathan.Chambers@ansys.com
Sat, 9 Apr 2005 10:48:04 -0400
Hello All,
I am working on optimizing some of the drawing code in the =
property grid and notice that clipping is not working properly. Is it =
supposed to be? Sorry if this is a dumb question but I looked into the =
Graphics.cs code and there is no MonoTODO attributes on SetClip or the =
Clip property.
If I do something like the following, the larger rectangle is =
drawn completely and not clipped by the smaller clip rectangle.
protected override void OnPaint(PaintEventArgs pevent)
{
pevent.Graphics.SetClip(new Rectangle(0,0,50,50));
pevent.Graphics.FillRectangle(
=
ThemeEngine.Current.ResPool.GetSolidBrush(SystemColors.ControlDark),
new Rectangle(0,0,100,150));
base.OnPaint(pevent);
}
I'm on FC3 with the latest code from SVN.
Thanks,
Jonathan