1. wxEuphoria color

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

new topic     » topic index » view message » categorize

2. Re: wxEuphoria color

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

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

3. Re: wxEuphoria color

buzzo said...

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.

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

4. Re: wxEuphoria color

solution is as follows:

 
constant color_Main_Win = create(wxColour,{97,95,95}) 
 
set_back_color ( WinFrame,  color_Main_Win ) 
 
new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu