Search found 2 matches

by dibridagoe
Wed Oct 18, 2006 5:39 pm
Forum: wx.NET
Topic: wrong accessibility to EvtHandler? error
Replies: 0
Views: 2464

wrong accessibility to EvtHandler? error

The EvtHandler class has a internal constructor, I think this must be an error since the c++ version has a public constructor. I need it public or at least protected to be able to do the following: public class wxBackgroundBitmap : wx.EvtHandler { protected wx.Bitmap bitmap; public wxBackgroundBitma...
by dibridagoe
Wed Oct 18, 2006 5:32 pm
Forum: The Code Dump
Topic: Paint background image in any wxWindow, an elegant way
Replies: 31
Views: 18634

I tried implementing this in c# public class wxBackgroundBitmap : wx.EvtHandler { protected wx.Bitmap bitmap; public wxBackgroundBitmap(wx.Bitmap bitmap) { this.bitmap = bitmap; } public new bool ProcessEvent(wx.Event e){ if(e.EventType == wx.Event.wxEVT_ERASE_BACKGROUND){ wx.EraseEvent eraseEvent =...