Subject Re: Color for Text object
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Wed, 18 Nov 2020 06:09:48 -0800
Newsgroups dbase.getting-started

On 11/18/2020 5:45 AM, Mustansir A Ghor wrote:
> Dear All
>
> Consider following text object
>
> tname.text = "Basin, Size: 30cm, Colour: Red"
>
> It is possible to display the text string with name in  black, Size in Green and Colour in Blue
>

Using HTML, yes:

tname.text = "Basin, <font color='green'>Size: 30cm</font>, <font
color='red'>Colour: Red</font>"

Ken


--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm