Microsoft KB Archive/156641

= BUG: GETCOLOR Function Does Not Return Focus to Custom Color =

Article ID: 156641

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q156641



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 box.



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
  In the Command window, type: i=GETCOLOR  Click the Define Custom Color button in the Color dialog. Change the LUM field to 150, and choose a color. Click the Add to Custom Colors button. The color appears under Custom Colors section. Click the OK button.  In the Command window, type, j=GETCOLOR(i) </li></ol>

Additional query words: kbdsd VFoxWin

Keywords: KB156641

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.