Re: wxWidgets crash
- Posted by ghaberek (admin) Feb 19, 2015
- 1368 views
Can you post the code you are using?
Remember to wrap your wxEVT_PAINT code with begin_drawing() and end_drawing() as shown in the example on the Events documentation page.
procedure onPaint( atom this, atom event_type, atom id, atom event ) atom dc dc = create( wxPaintDC, {this} ) begin_drawing(dc) -- ... do drawing here... end_drawing(dc) delete_instance(dc) end procedure set_event_handler( panel, -1, wxEVT_PAINT, routine_id("onPaint") )
Also, I wrapped your error output with triple curly brackets ( {{{ and }}} ) which preserves formatting. See CreoleHelp for more details.
-Greg