Ingeniero En Sistemas
|Versions: |2.6a |Product Support Services |
|Subject: |Combining a Browse Window with GET Fields|Application Note |
|Contents: |9 Pages, No Disk |12/94 FW1125 |
INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY ACCOMPANY THIS DOCUMENT (collectively referred to as an Application Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSEDOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. The user assumes the entire risk as to the accuracy and the use of this Application Note. This Application Note may be copied and distributed subject to the following conditions: 1) All text must be copied without modification and all pages must be included; 2) If softwareis included, all files on the disk(s) must be copied without modification (the MS-DOS® utility diskcopy is appropriate for this purpose); 3) All components of this Application Note must be distributed together; and 4) This Application Note may not be distributed for profit.
Copyright © 1994 Microsoft Corporation. All Rights Reserved.
Microsoft, MS-DOS, and FoxPro are registeredtrademarks and Windows is a trademark of Microsoft Corporation.
This document was created using Microsoft Word for WindowsÔ.
Including a Browse Window in a Screen
You can create a screen that contains a Browse window. By including a Browse window in a screen you give the user a one-to-many display of fields, similar to Figure 1. However, because a Browse window is not a screen object, youneed to define a child window for the Browse and then write a program to manage user interactions with the Browse window.
[pic]
Fig. 1: Parent and child window schema for including a Browse window in a screen.
You cannot add GET fields to a parent window and have them interact with fields in a child window, but you can add GET fields to a separate screen, and then generate the two screenstogether in a screen set. The generated screen set can act as a single screen because the #WCLAUSES generator directive allows you to define one screen as a child window of the other.
Use the following general procedure to create a screen with two child windows: a Browse window and a window with GET fields. The section following the general procedure elaborates on these steps by providing aspecific example that shows how to create a one-to-many screen.
To create a screen that contains a Browse window and GET fields:
1. Set up the environment for the screen set.
2. Create the parent screen that will encompass the GET screen and the Browse window.
3. In the setup code for the parent screen, define a window with the attributes you want the Browse window to have, but don’tactivate the window. For example:
DEFINE WINDOW wbrowse ;
FROM 13.85, 3.00 ;
TO 22.85, 90.00 ;
FONT "MS Sans Serif", 8 ;
NOFLOAT ;
NOCLOSE ;
NONE ;
IN WINDOW wmain
Wmain is the name of the parent window as specified in the Screen Layout dialog box for the parent screen. To obtain the FROM and TO coordinates, draw a rectangle in theparent window where you want the Browse window to be. Note the top, bottom, left, and right positions of the rectangle as displayed on the status bar.
4. Include a BROWSE command in the setup code. For example:
BROWSE WINDOW wbrowse IN WINDOW wmain NOWAIT SAVE
5. Create a separate screen for the GET fields.
6. In the setup code for the GET screen, include the following command:...
Regístrate para leer el documento completo.