1. set_back_color wxEuphoria
- Posted by don cole <doncole at pacbell.net> Oct 18, 2005
- 499 views
Hello people. In wxEuphoria, I can't get set_back_color ( atom window, atom color ) to work.
procedure onPaint_ScrollWin( atom this, atom id, atom event_type, atom event ) atom newfont, dc dc = create( wxPaintDC, {this}) set_background_mode ( dc, wxSOLID ) set_back_color(ScrollWin,Yellow)--does nothing set_back_color(ScrollFrame,Yellow)--does nothing -- set_back_color(dc,Yellow)--gets mach level err set_text_color (dc ,Red)--does nothing set_text_back_color (dc ,Yellow)-- works for text newfont = create( wxFont, {fontSize,wxROMAN,wxNORMAL,wxNORMAL,0,"Times New Roman"}) set_font( dc, newfont ) wx_printf( {ScrollWin,1,30,dc}, "It has been %d days", {fontSize} ) delete_instance( newfont ) delete_instance( dc ) end procedure set_event_handler( ScrollWin, get_id(ScrollWin),wxEVT_PAINT, routine_id( "onPaint_ScrollWin" ))
Any appreciated, Don Cole SF
2. Re: set_back_color wxEuphoria
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Oct 18, 2005
- 486 views
don cole wrote: > > Hello people. > > In wxEuphoria, > > I can't get set_back_color ( atom window, atom color ) > > to work. > Try moving set_back_color() to outside of your onPaint routine. Matt Lewis
3. Re: set_back_color wxEuphoria
- Posted by don cole <doncole at pacbell.net> Oct 19, 2005
- 481 views
Matt Lewis wrote: > Try moving set_back_color() to outside of your onPaint routine. > Bingo thank you Matt Don Cole SF >