1. Next question...

Hmm...

So, I start my next question...

I've got setTextColor set to a decimal value, or set to an rgb() value...

yet whether or not I throw it in a onPaint, the desired color,
(something other than black) doesn't come up.

Yet another newbie-style question, sorry :)

TIA,

Blessed Be! --"LEVIATHAN"

new topic     » topic index » view message » categorize

2. Re: Next question...

Put this:

setTextColor( newForm, rgb(81,144,0) )
wPuts( newForm, "This text is in green" )

in your onPaint event, & you will get the text printed in green IN THE
WINDOW; I'll bet, however, that you were thinking you could use this to
control the color of the text in your controls??

Dan

----- Original Message -----
From: "LEVIATHAN" <leviathan at USWEST.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Thursday, August 24, 2000 7:28 PM
Subject: Next question...


> Hmm...
>
> So, I start my next question...
>
> I've got setTextColor set to a decimal value, or set to an rgb() value...
>
> yet whether or not I throw it in a onPaint, the desired color,
> (something other than black) doesn't come up.
>
> Yet another newbie-style question, sorry :)
>
> TIA,
>
> --"LEVIATHAN"

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

3. Re: Next question...

> Put this:
>
> setTextColor( newForm, rgb(81,144,0) )
> wPuts( newForm, "This text is in green" )
>
> in your onPaint event, & you will get the text printed in green IN THE
> WINDOW; I'll bet, however, that you were thinking you could use this
> to control the color of the text in your controls??
>
> Dan
>

Yup, thats where I am stuck :)

Trying to control color of text in the Statictext controls (LText, RText,
CText)

Is there a way to have the control colors turn other colors?

TIA,

Blessed Be! --"LEVIATHAN"

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

4. Re: Next question...

"LEVIATHAN" wrote:

> Is there a way to have the control colors turn other colors?

No, sorry. Technically, it's possible. Practically, I decided that it would
be a bad idea. For example, it might seem that setting a particular button
to Red is a good plan - but what if the user already has selected a red
color
scheme?

Microsoft makes this sort if mistake in some of their application wizards.
If you change your settings so that windows are black (don't laugh - I've
done it) and text is bright
white, the text in the _wizards_ is *still* black, because it's hard coded.

So I figured the best plan was to respect the user's color scheme.

But since I'm no longer the primary coder, you might talk Matt into adding
that feature. smile

-- David Cuny

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

5. Re: Next question...

I am sure that there is a method for color conversion. Please ask senior
coders.

Thank You

-Asif

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

6. Re: Next question...

On 25 Aug 2000, at 22:44, Asif Masood Baloch wrote:

> I am sure that there is a method for color conversion. Please ask senior
> coders.
>
> Thank You
>
> -Asif

Isn't that exactly what he is doing? Or did i miss something?

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu