Re: wxEuphoria
- Posted by ghaberek (admin) Jun 05, 2012
- 1291 views
Don't forget your begin_drawing(), end_drawing(), and delete_instance() calls!
See wxEVT_PAINT.
procedure onPaint_HelloWin( atom this, atom event, atom it, atom event_type ) atom dc = create( wxPaintDC, this ) begin_drawing( dc ) -- this works in paint event..on the StaticText only... not on wx_puts set_back_color( dc, BrightRed ) -- this does not work here either set_text_color( dc, BrightWhite) -- set_background_mode(HelloWin,wxTRANSPARENT) -- this crashes ? wx_puts( {this,10,20, dc}, "HelloWin, World!") -- unable to change color end_drawing( dc ) delete_instance( dc ) end procedure