Change Color of Say

Change Color of Say

Postby ChrisMillard » Wed Jan 13, 2010 2:45 pm

I build my Windows at runtime, i.e. I don't use resources. I have a windows with a number of SAY objects, for example:
Code: Select all  Expand view  RUN
@ nTop, nLeft SAY oSay PROMPT "Prompt" SIZE nClientWidth, nFontHeight FONT oFont BORDER PIXEL CENTER COLOR CLR_BLACK, CLR_WHITE UPDATE


I already use
Code: Select all  Expand view  RUN
oSay:SetText("Something Else")
quite successfully.

But I also need to change either the Text or Background Color of the SAY.
Code: Select all  Expand view  RUN
oSay:SetColor(CLR_GREEN, CLR_BLUE)
does not exist.

I have tried
Code: Select all  Expand view  RUN
SetTextColor(oSay:hWnd, nRGB(CLR_GREEN))
but that does not seem to do anything.

And
Code: Select all  Expand view  RUN
REDEFINE SAY oSAY COLOR CLR_GREEN, CLR_BLUE
gives a method not defined error.

Can somebody point me in the right direction.

Regards
Chris Millard
Regards

Chris Millard
ChrisMillard
 
Posts: 12
Joined: Wed Jul 09, 2008 7:07 pm
Location: Manchester, UK

Re: Change Color of Say

Postby Enrico Maria Giordano » Wed Jan 13, 2010 5:16 pm

ChrisMillard wrote:
Code: Select all  Expand view  RUN
oSay:SetColor(CLR_GREEN, CLR_BLUE)


It should work fine.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8719
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Change Color of Say

Postby ChrisMillard » Wed Jan 13, 2010 8:40 pm

Well how strange, I am sure I tried it first.

Many thanks for making me go back and try it again, I have spent quite some time trying to figure how to do something that should have been simple, to now find it was simple all the time. lol :D

Happy New Year

Chris Millard
Regards

Chris Millard
ChrisMillard
 
Posts: 12
Joined: Wed Jul 09, 2008 7:07 pm
Location: Manchester, UK


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 4 guests