Re: Set Text Color for wxStaticText

new topic     » goto parent     » topic index » view thread      » older message » newer message

Thanks Matt

Matt Lewis wrote:
> 
> Brian K. Clark wrote:
> > 
> > 
> > I'm struggling with what seems like it should be a simple enough task.  How
> > do I change the text color of a wxStaticText control?
> 
> It's not wrapped, but you need to use:
> }}}
<eucode>
> void = call_member( wxWindowBase_SetForegroundColour, Label, {Red})
> </eucode>
{{{

> 
> Also, the color isn't being created properly.  You need to wrap "Red" in
> curly braces:
> }}}
<eucode>
> Red               = create( wxColour, {"Red"})
> </eucode>
{{{

> 
> Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu