Microsoft KB Archive/121438

{| = BUG: Status Bar Does Not Change on Wizard-Generated Screens =
 * width="100%"|

ID: Q121438

2.60 2.60a | 2.60 2.60a | 2.60a

WINDOWS   | MS-DOS     | MACINTOSH kbui kbdisplay kbtool kbbuglist The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.6, 2.6a
 * Microsoft FoxPro for MS-DOS, versions 2.6, 2.6a
 * Microsoft FoxPro for Macintosh, version 2.6a

SYMPTOMS
The message displayed in the status bar when you choose a button in a screen generated by the Screen Wizard does not change when the prompt displayed on the button has been changed.

For example, choosing the Edit button changes that button's prompt to Save. However, choosing the Save button still displays "Edit current record" in the status bar.

NOTE: In FoxPro for MS-DOS, the message is displayed at the bottom of the screen instead of in the status bar.

CAUSE
When the Screen Wizard generates the screen and builds the @ ... GET fields, it adds a MESSAGE clause that is relevant to only one of the prompts for a given button. Because there is no such thing as a "dynamic GET" that would allow this message to change programmatically, the message does not change with the button prompt. This behavior occurs because of a problem with the Screen Wizard and FoxPro's inability to change messages programmatically.

For additional information about how to display unique messages for push button prompts, please see the following article in the Microsoft Knowledge Base:

ARTICLE-ID: Q104347 TITLE    : Displaying Unique Messages for Prompts in a Button Set

STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Steps to Reproduce Problem
1. From the Run menu, choose Wizard. Choose Screen.

2. Choose the Open button. Select Customer.dbf from the TUTORIAL

subdirectory in the main FoxPro directory. Choose the Open button. 3. Choose the Finish button. 4. When prompted for a screen title, select Save And Run Screen. Choose

the Finish button. 5. When prompted to save the screen, accept the default of Customer.scx and choose the Save button. 6. When the newly generated screen is displayed, choose the Edit button. Note that the prompt for that button changes to Save. 7. Click the Save button, holding down the mouse button (do not release the  button). Note that the message displayed in the status bar is "Edit current record" instead of "Save current record." Additional reference words: FoxMac FoxDos FoxWin 2.60 statusbar buglist2.60 buglist2.60a KBCategory: kbui kbdisplay kbtool kbbuglist KBSubcategory: FxtoolWizscreen
 * }