FIX: Spinner Doesn't Inherit Color Props from .vcx Definition (133022)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q133022 SYMPTOMS
A spinner definition created in a visual class library will not display the
inherit color definitions (Forecolor, Backcolor, DisabledForecolor, and so
on) when instances are created on a form. This occurs whether the Form
Designer or the AddObject method is used to create the instances even
though the color definitions are in the Properties Sheet. When the form is
run, the spinner reverts to a display of the standard color property
definitions for a spinner.
WORKAROUND
Add the following code to the Init method of the spinner definition in the
visual class library (VCX):
WITH This
.ForeColor = .ForeColor
.BackColor = .BackColor
.DisabledForeColor = .DisabledForeColor
.DisabledBackColor = .DisabledBackColor
.SelectedForeColor = .SelectedForeColor
.SelectedBackColor = .SelectedBackColor
ENDWITH
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem was corrected in
Visual FoxPro 3.0b for Windows.
Modification Type: | Major | Last Reviewed: | 3/24/2000 |
---|
Keywords: | kbbug KB133022 |
---|
|