Re: wxWidgets crash

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu