PRB: GETCOLOR Function Does Not Return Focus to Custom Color

Last reviewed: January 10, 1997
Article ID: Q156641
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows 3.0, 3.0b, 5.0

SYMPTOMS

The Color dialog does not properly highlight a custom color that was previously selected with the GETCOLOR() function. Therefore, attempting to return focus within the Colors dialog to the earlier selected custom color fails.

CAUSE

The GETCOLOR() function calls the Colors dialog box, which is a Windows common dialog. Visual FoxPro has no control over what gets the initial focus in this dialog.

STATUS

Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The GETCOLOR function does not return focus to a previously-created custom color. The cursor rectangle surrounds the upper-left color object in the Basic Colors section of the Color dialog. However, a bold border appears around the custom color object.

One can return focus to a color selected from the Basic Colors section of the Colors dialog.

Steps to Reproduce Behavior

  1. In the Command window, type:

    i=GETCOLOR()

  2. Click the Define Custom Color button in the Color dialog.

  3. Change the LUM field to 150, and choose a color.

  4. Click the Add to Custom Colors button. The color appears under Custom Colors section.

  5. Click the OK button.

  6. In the Command window, type,

    j=GETCOLOR(i)


KBCategory: kbgraphic kbprg kbprb
KBSubcategory: FxprgGeneral
Additional reference words: 3.00 3.00b 5.00 kbdsd VFoxWin



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 10, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.