Re: Set Text Color for wxStaticText

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

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:
void = call_member( wxWindowBase_SetForegroundColour, Label, {Red})


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


Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu