1. wxEuphoria, font color

hi,
I began to write a program using wxEuphoria but It seem that the font color for
a control can'y be selected.  I use wxStaticText and want to specified a font and
font color for each one of them independandly. How do I set the colour property
of a font.
In dialog_demo.exw when a different color is chosen the text is always displayed
in black.

regards,
Jacques Deschênes

new topic     » topic index » view message » categorize

2. Re: wxEuphoria, font color

jacques deschênes wrote:
> 
> hi,
> I began to write a program using wxEuphoria but It seem that the font color
> for a control can'y be selected.  I use wxStaticText and want to specified a
> font and font color for each one of them independandly. How do I set the
> colour
> property of a font.
> In dialog_demo.exw when a different color is chosen the text is always
> displayed
> in black.

It's not wrapped, but you need to use wxWindow::SetForegroundColour.  In
windows, it's wxWindowBase_SetForegroundColour.

Matt

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

3. Re: wxEuphoria, font color

Thanks Matt,
I got it. When I'll be done with that project, I'll send you all modified
wxEuphoria.

regards,
Jacques Deschênes

Matt Lewis wrote:
> 
> jacques deschênes wrote:
> > 
> > hi,
> > I began to write a program using wxEuphoria but It seem that the font color
> > for a control can'y be selected.  I use wxStaticText and want to specified a
> > font and font color for each one of them independandly. How do I set the
> > colour
> > property of a font.
> > In dialog_demo.exw when a different color is chosen the text is always
> > displayed
> > in black.
> 
> It's not wrapped, but you need to use wxWindow::SetForegroundColour.  In
> windows, it's wxWindowBase_SetForegroundColour.
> 
> Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu