1. [win32lib] Changing Font Colors
- Posted by Travis Beaty <travis_beaty at mcleodusa.net> Apr 15, 2002
- 433 views
Hello All! Has any progress been made on the ability to change the color of a font in a label? This is something I really need for a project that I am working on. Travis Beaty Evans, Colorado Automobile, n.: A four-wheeled vehicle that runs up hills and down pedestrians.
2. Re: [win32lib] Changing Font Colors
- Posted by "Thomas Parslow (PatRat)" <tom at almostobsolete.net> Apr 15, 2002
- 436 views
> Hello All! > Has any progress been made on the ability to change the color of a font > in a label? This is something I really need for a project that I am > working on. > Travis Beaty > Evans, Colorado > Automobile, n.: > A four-wheeled vehicle that runs up hills and down pedestrians. setTextColor() should do that... Thomas Parslow (PatRat) E-Mail/Jabber: tom at almostobsolete.net ICQ: 26359483
3. Re: [win32lib] Changing Font Colors
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Apr 15, 2002
- 431 views
Travis, Take a look at the mod Derek made to "WrtLabel" in the demos, and you'll see he made labels of different colors, which could be adapted to making the FONT be variable; I think there's a "getColor" dialog available in Win32Lib you could use, but instead of using the chosen color to make the *background* of the label (as in the demo), use it to make the *pen* color be what the user wants. You would have to make the text re-write in that color, I would presume. Dan Moyer ----- Original Message ----- From: "Travis Beaty" <travis_beaty at mcleodusa.net> To: "EUforum" <EUforum at topica.com> Sent: Monday, April 15, 2002 3:58 PM Subject: RE: [win32lib] Changing Font Colors > > Hello! > > Well, the thing is that I just want to change the font color for one > control -- the label. I tried using ... > > setTextColor(lblTime, rgb(255, 0, 0)) > > without any success. The idea is to have the user be able to change the > color of the text in the label via the "color selector" on the font > dialog. > > Travis Beaty > Evans, Colorado. > > "Gosh that takes me back... or is it forward? That's the trouble with > time travel, you never can tell." > -- Doctor Who "Androids of Tara" > > > : -----Original Message----- > : From: Thomas Parslow (PatRat) [mailto:tom at almostobsolete.net] > : Sent: Monday, April 15, 2002 2:03 PM > : To: EUforum > : Subject: Re: [win32lib] Changing Font Colors > : > : > Hello All! > : > : > Has any progress been made on the ability to change the color of > a > : font > : > in a label? This is something I really need for a project that > I am > : > working on. > : > : > Travis Beaty > : > Evans, Colorado > : > : > Automobile, n.: > : > A four-wheeled vehicle that runs up hills and down > : pedestrians. > : > : setTextColor() should do that... > : > : Thomas Parslow (PatRat) > : E-Mail/Jabber: tom at almostobsolete.net > : ICQ: 26359483 > : > : > : > > > >
4. Re: [win32lib] Changing Font Colors
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Apr 15, 2002
- 449 views
Oops, Nevermind, should've tried it before I suggested it, doesn't work. Sorry. Dan ----- Original Message ----- From: "Dan Moyer" <DANIELMOYER at prodigy.net> To: "EUforum" <EUforum at topica.com> Subject: Re: [win32lib] Changing Font Colors > > Travis, > > Take a look at the mod Derek made to "WrtLabel" in the demos, and you'll see > he made labels of different colors, which could be adapted to making the > FONT be variable; I think there's a "getColor" dialog available in Win32Lib > you could use, but instead of using the chosen color to make the > *background* of the label (as in the demo), use it to make the *pen* color > be what the user wants. You would have to make the text re-write in that > color, I would presume. > > Dan Moyer > > ----- Original Message ----- > From: "Travis Beaty" <travis_beaty at mcleodusa.net> > To: "EUforum" <EUforum at topica.com> > Sent: Monday, April 15, 2002 3:58 PM > Subject: RE: [win32lib] Changing Font Colors > > > > Hello! > > > > Well, the thing is that I just want to change the font color for one > > control -- the label. I tried using ... > > > > setTextColor(lblTime, rgb(255, 0, 0)) > > > > without any success. The idea is to have the user be able to change the > > color of the text in the label via the "color selector" on the font > > dialog. > > > > Travis Beaty > > Evans, Colorado. > > > > "Gosh that takes me back... or is it forward? That's the trouble with > > time travel, you never can tell." > > -- Doctor Who "Androids of Tara" > > > > > > : -----Original Message----- > > : From: Thomas Parslow (PatRat) [mailto:tom at almostobsolete.net] > > : Sent: Monday, April 15, 2002 2:03 PM > > : To: EUforum > > : Subject: Re: [win32lib] Changing Font Colors > > : > > : > Hello All! > > : > > : > Has any progress been made on the ability to change the color of > > a > > : font > > : > in a label? This is something I really need for a project that > > I am > > : > working on. > > : > > : > Travis Beaty > > : > Evans, Colorado > > : > > : > Automobile, n.: > > : > A four-wheeled vehicle that runs up hills and down > > : pedestrians. > > : > > : setTextColor() should do that... > > : > > : Thomas Parslow (PatRat) > > : E-Mail/Jabber: tom at almostobsolete.net > > : ICQ: 26359483 > > : > > : > > : > > > > > > >
5. Re: [win32lib] Changing Font Colors
- Posted by Irv Mullins <irvm at ellijay.com> Apr 16, 2002
- 421 views
On Monday 15 April 2002 12:28 pm, Travis wrote: > Has any progress been made on the ability to change the color of a font > in a label? This is something I really need for a project that I am > working on. Hi Travis; This is no help to you, except perhaps to keep in mind for future projects; I've almost finished wrapping GTK 2.0, and it has (among many other nice features) HTML-stye markup for labels, so you can set fonts, attributes (bold, italic, size, color, and bkgnd color) for any portion of a label. A nice touch, but I don't know if those features will work when it is eventually ported to Windows. Regards, Irv