Subject Re: Add Color
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Sun, 20 Mar 2022 21:24:49 -0700
Newsgroups dbase.getting-started

On 3/20/2022 5:49 PM, Ivan Benttini wrote:
> Ken Mayer Wrote:
>
>> On 3/19/2022 7:32 AM, Ivan Benttini wrote:
>>> How can I programmatically add a color to the Color Property Builder in dBase Plus to be used as background color to an entryfield. Thanks.
>>
>> define color ...
>>
>> (In the command window type:
>>
>> help define color
>>
>> which will bring up more information)
>>
>> 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
>> dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
>
> Thanks for your time, but I can not make it works. all I want is get the backgroungs  of my entryfields to be the same as my form. I will keep looking for someone wanting the same to copy from them of hpw to do this. After my stroke   I can only work little bit of the time. Thanks again for trying to  again
> help this old crocodile here.


Are you using custom controls? If so, define the color of the entryfield
to the one used by the form. By default the color of the form is btnface
from the colorNormal property. In your custom control definition define
the color of your entryfield to be black/btnFace (black text). Or
whatever colors you need.

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
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm