1. wxEuphoria
- Posted by buzzo Jun 29, 2013
- 1159 views
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
2. Re: wxEuphoria
- Posted by ghaberek (admin) Jun 29, 2013
- 1179 views
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