c# accessibility to EvtHandler?
Gabor Tjong A Hung
gvtjongahung at users.sourceforge.net
Sun Oct 22 07:05:06 PDT 2006
Hello there,
the c# version of the EvtHandler class seems to have an
'internal'-accessability constructor, I think this must be an error since
the c++ version has a public constructor. I was wondering if this could be
updated or if there is another way of doing what I want, putting a bitmap as
a background.
I'm not sure if this is the place where I should be, but I've left a message
on the forum for quite some time without any result, I've been bugging
people on irc/freenode and seemed to have gotten no result.
http://wxforum.shadonet.com/viewtopic.php?t=3D10531
public class wxBackgroundBitmap : wx.EvtHandler
{
protected wx.Bitmap bitmap;
public wxBackgroundBitmap(wx.Bitmap bitmap)
{
this.bitmap =3D bitmap;
}
public new bool ProcessEvent(wx.Event e){
if(e.EventType =3D=3D wx.Event.wxEVT_ERASE_BACKGROUND){
wx.EraseEvent eraseEvent =3D (wx.EraseEvent)e;
eraseEvent.DC.DrawBitmap(bitmap,0,0,false);
return true;
}
else return base.ProcessEvent(e);
}
}
-- =
Success is dependent on effort.
Sophocles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20061022/643=
a4b0d/attachment.htm
More information about the wx-users
mailing list