Re: wxEuphoria

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

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 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu