Problems loading a radiobox
Raúl Moratalla <[email protected]> Thu, 23 Sep 2004 23:27:42 +0200
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am using wxGlade to design my application. I load the xrc file and all the widgets without any problem. I do it as the following example: txtNick = (wx.TextCtrl)XmlResource.XRCCTRL(this,"txtNick", typeof(wx.TextCtrl)); But I can't load a RadioBox, I do the following: test = (wx.RadioBox)XmlResource.XRCCTRL(this,"test",typeof(wx.RadioBox)); And I get the following error: Unhandled Exception: System.MissingMethodException: Constructor not found. in [0x00093] (at /cvs/1-mono/mcs/class/corlib/System/Activator.cs:182) System.Activator:CreateInstance (System.Type,object[],object[]) in [0x00008] (at /cvs/1-mono/mcs/class/corlib/System/Activator.cs:156) System.Activator:CreateInstance (System.Type,object[]) in <0x0009d> wx.Object:FindObject (intptr,System.Type) in <0x00020> wx.Window:FindWindow (int,System.Type) in <0x0002a> wx.XmlResource:XRCCTRL (wx.Window,string,System.Type) in [0x00209] (at /home/raul/Compilar/lphantWx/Options.cs:56) lphantWx.OptionsDialog:.ctor (wx.Window,eLePhant.eDonkey.CInterfaceGateway) in [0x00007] (at /home/raul/Compilar/lphantWx/lphantwx.cs:34) lphantWx.lphantFrame:OnbtnOptions (object,wx.Event) in <0x00069> (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_Event (object,wx.Event) in <0x0038c> wx.EvtHandler:MarshalEvent (intptr,int) in <0x0006f> (wrapper native-to-managed) wx.EvtHandler:MarshalEvent (intptr,int) in (unmanaged) (wrapper managed-to-native) wx.App:wxApp_Run (int,string[]) in <0x00004> (wrapper managed-to-native) wx.App:wxApp_Run (int,string[]) in <0x00021> wx.App:Run () in [0x00007] (at /home/raul/Compilar/lphantWx/lphantwx.cs:68) lphantWx.lphantWx:Main () Did I something wrong or is this a possible bug? I am using wxWidgets for .NET 0.5 with Mono 1.0.1 Cheers, Raúl -- ---------------------------------------------------------------------------------------------- http://raulmoratalla.webcindario.com La web con información sobre Suse Linux y programación. Raúl Moratalla ---------------------------------------------------------------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php