1. wxEuphoria color
- Posted by buzzo Nov 12, 2014
- 1253 views
the doc advises: set_back_color ( atom window, atom color ) Category: wxWindow
window: the window whose color is to be set
color: a wxColour object
my question is why does this fail:
set_back_color ( WinFrame, "THISTLE" )
advising that args to C must be atom
2. Re: wxEuphoria color
- Posted by ghaberek (admin) Nov 12, 2014
- 1274 views
In order to use named colors, you have to first create a wxColour object with that name, and then pass that object to set_text_color(), etc.
atom THISTLE = create( wxColour, "THISTLE" ) set_text_color( dc, THISTLE )
-Greg
3. Re: wxEuphoria color
- Posted by DerekParnell (admin) Nov 12, 2014
- 1224 views
the doc advises: set_back_color ( atom window, atom color ) Category: wxWindow
window: the window whose color is to be set
color: a wxColour object
my question is why does this fail:
set_back_color ( WinFrame, "THISTLE" )
advising that args to C must be atom
The second argument must be an atom and "THISTLE" is a string (sequence) and not an atom.
What is the RGB value that you want "THISTLE" to represent?
Note: An RGB is a 24-bit integer (atom) that specifies the intensity of the Red, Green and Blue components of the composite colour.
4. Re: wxEuphoria color
- Posted by buzzo Nov 12, 2014
- 1235 views
solution is as follows:
constant color_Main_Win = create(wxColour,{97,95,95}) set_back_color ( WinFrame, color_Main_Win )