1. wxEuphoria, font color
- Posted by jacques deschênes <desja at globetrotter.net> Nov 10, 2006
- 561 views
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
2. Re: wxEuphoria, font color
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Nov 10, 2006
- 535 views
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
3. Re: wxEuphoria, font color
- Posted by jacques deschênes <desja at globetrotter.net> Nov 10, 2006
- 545 views
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