Chuck:
> Is there a way to change the background color of the fields upon
> enable/disable?
Yes. The easiest solution to code is to add conditional code (on the Enabled and ReadOnly properties) in the Refresh method of all your base classes. The user should have some control over these settings. If you provide a facility (form) to allow the user to change the colors, you can code something like the following in base textbox class.
With This
Do Case
Case .Enabled And Not .ReadOnly
.ResetToDefault('ForeColor')
.ResetToDefault('FontBold')
Case .Enabled And .ReadOnly
.DisabledBackColor = goSettings.ReadOnlyBackColor
.ForeColor = goSettings.ReadOnlyForeColor
.FontBold = goSettings.ReadOnlyFontBold
Otherwise
*-- Control is not enabled
.DisabledBackColor = goSettings.DisabledBackColor
.DisabledForeColor = goSettings.DisabledForeColor
.FontBold = goSettings.DisabledFontBold
EndCase
EndWith
where goSettings is a public object that stores the user choice of colors
for normal, read-only and disabled controls.
Daniel
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only