1. wxEuphoria

documentation:

set_back_color ( atom window, atom color )

Category: wxWindow

window: the window whose color is to be set

color: a wxColour object

however, calling the statement set_back_color(edit_group,"CADET BLUE" ) causes an error.. arguments to C routines must be atoms.. the documentation states that the color should be a wxColour object .. "CADET BLUE" or a sequence of {red, green, blue} values .. which returns the same error..

have I missed something?

Z

new topic     » topic index » view message » categorize

2. Re: wxEuphoria

buzzo said...

documentation:

set_back_color ( atom window, atom color )

Category: wxWindow

window: the window whose color is to be set

color: a wxColour object

however, calling the statement set_back_color(edit_group,"CADET BLUE" ) causes an error.. arguments to C routines must be atoms.. the documentation states that the color should be a wxColour object .. "CADET BLUE" or a sequence of {red, green, blue} values .. which returns the same error..

have I missed something?

You have to actually create a wxColour object first and pass that to set_back_color().

constant cadet_blue = create( wxColour, "CADET BLUE" ) 
set_back_color( window, cadet_blue ) 

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu