Microsoft KB Archive/103008: Difference between revisions
From BetaArchive Wiki
(importing KB archive) |
m (Text replacement - "&" to "&") |
||
(One intermediate revision by the same user not shown) | |||
Line 53: | Line 53: | ||
<ol> | <ol> | ||
<li>Create a new screen.</li> | <li>Create a new screen.</li> | ||
<li>Use the Picture tool (see page U11-10 of the | <li>Use the Picture tool (see page U11-10 of the "User's Guide") to draw a graphic object that is 2 inches by 2 inches (use the ruler).</li> | ||
<li>When the Screen Picture dialog box appears, choose Field.</li> | <li>When the Screen Picture dialog box appears, choose Field.</li> | ||
<li>In the Choose Field/Variable dialog box, select spin.spinpict, and choose OK.</li> | <li>In the Choose Field/Variable dialog box, select spin.spinpict, and choose OK.</li> | ||
<li>Select the Scale Picture--Fill The Frame and Refresh Output Field options. Choose OK.</li> | <li>Select the Scale Picture--Fill The Frame and Refresh Output Field options. Choose OK.</li> | ||
<li>Select the Field tool (see page U11-10) and draw a field on the screen.</li> | <li>Select the Field tool (see page U11-10) and draw a field on the screen.</li> | ||
<li>When the Field dialog box appears, select Output Field (Say) under Field and type | <li>When the Field dialog box appears, select Output Field (Say) under Field and type "waittext" (without the quotation marks) in the box that is beside the Output button.</li> | ||
<li>Under Options, select Refresh Output Field, and choose OK.</li> | <li>Under Options, select Refresh Output Field, and choose OK.</li> | ||
<li><p>In the Screen Setup code for the screen, type: ''''''</p> | <li><p>In the Screen Setup code for the screen, type: ''''''</p> | ||
<pre class="CODESAMP"> PUBLIC waittext | <pre class="CODESAMP"> PUBLIC waittext | ||
waittext= | waittext=" " </pre></li> | ||
<li><p>In the Cleanup and Procedures code for the screen, type: ''''''</p> | <li><p>In the Cleanup and Procedures code for the screen, type: ''''''</p> | ||
<pre class="CODESAMP"> PROCEDURE spinit | <pre class="CODESAMP"> PROCEDURE spinit | ||
Line 77: | Line 77: | ||
RETURN </pre></li> | RETURN </pre></li> | ||
<li><p>In the On Screen Entry (When)... code for the screen, type: ''''''</p> | <li><p>In the On Screen Entry (When)... code for the screen, type: ''''''</p> | ||
<pre class="CODESAMP"> waittext= | <pre class="CODESAMP"> waittext="Executing Command 1" && Text that is displayed | ||
& | && telling user what | ||
& | && routine/command is being | ||
& | && executed. | ||
DO spinit & | DO spinit && Animate the wedge moving. | ||
** The WAIT WINDOW command below is for the purpose of | ** The WAIT WINDOW command below is for the purpose of | ||
Line 89: | Line 89: | ||
WAIT WINDOW 'Command 1' | WAIT WINDOW 'Command 1' | ||
waittext= | waittext="Executing Command 2" && Text that is displayed | ||
& | && telling user what | ||
& | && routine/command is being | ||
& | && executed. | ||
DO spinit & | DO spinit && Animate the wedge moving. | ||
** The WAIT WINDOW command below is for the purpose of | ** The WAIT WINDOW command below is for the purpose of | ||
Line 100: | Line 100: | ||
** should be replaced with actual command. | ** should be replaced with actual command. | ||
WAIT WINDOW 'Command 2' | WAIT WINDOW 'Command 2' | ||
CLEAR READ & | CLEAR READ && Clear Window/Read </pre></li> | ||
<li>Select the Center and Modal Screens options before generating the screen so that the window will come up centered and the user will not be able to access other menu options.</li></ol> | <li>Select the Center and Modal Screens options before generating the screen so that the window will come up centered and the user will not be able to access other menu options.</li></ol> | ||
Latest revision as of 12:24, 21 July 2020
The information in this article applies to:
SUMMARYIn some cases, you may want to use a screen other than a thermometer bar to notify the user to wait while some commands are being executed.
MORE INFORMATIONCreating the Bitmaps
Creating the Database for the Bitmaps
Creating the Screen
Keywords : kbcode kbVFp300 kbVFp500 Version : Platform : Issue type : kbhowto |
Last Reviewed: August 18, 1999 |