Problems with TextAttr
"NoSpamPlease" <[email protected]> Tue, 21 Dec 2004 17:51:36 +0100 (CET)
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <33964.217.88.130.138.1103647896.19470.squirrel@webmailer.hosteurope.de> |
To create a Syntax Highlight Editor i need TextCtrl.SetStyle but i get Exceptions with TextAttr class. I already tryed (wxWidgets 2.4\wx.NET 0.5), (wxWidgets 2.4\wx.NET 0.6) and (wxWidgets 2.5\wx.NET 0.6) but can`t get it run. OS: Gentoo Linux - Mono: 1.0.4 --- wx.TextAttr ta = new wx.TextAttr(wx.Colour.wxBLUE); Gives me the following exception stack: ** (Editor.exe:24485): WARNING **: Missing method .ctor in assembly Editor.exe typeref index 45 Unhandled Exception: System.NullReferenceException: Object reference not set toan instance of an object in (unmanaged) EditorFrame:OnNew (object,wx.Event) in <0x00095> EditorFrame:OnNew (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) --- wx.TextAttr ta = new wx.TextAttr(); Gives me the following exception stack: Unhandled Exception: System.NullReferenceException: Object reference not set toan instance of an object in (unmanaged) (wrapper managed-to-native) wx.TextAttr:wxTextAttr_ctor (intptr,intptr,intptr) in <0x00004> (wrapper managed-to-native) wx.TextAttr:wxTextAttr_ctor (intptr,intptr,intptr) in <0x00056> wx.TextAttr:.ctor (wx.Colour,wx.Colour,wx.Font) in <0x00019> wx.TextAttr:.ctor () in <0x00320> ScriptEditor:.ctor (string,System.Drawing.Point,System.Drawing.Size) in <0x00094> EditorFrame:OnNew (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) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/