1. set_back_color wxEuphoria

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

new topic     » topic index » view message » categorize

2. Re: set_back_color wxEuphoria

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: set_back_color wxEuphoria

Matt Lewis wrote:

> Try moving set_back_color() to outside of your onPaint routine.
> 
Bingo thank you Matt

Don Cole
SF
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu