0 оценок0% нашли этот документ полезным (0 голосов)
121 просмотров10 страниц
A browse widget lets you see data and select records from all the records associated with a database query. You can define a static browse widget with or a dynamic browse widget with The CREATE BROWSE statement. The browse can be either a read-only tool for browsing through records, or it can be an editing tool for updating records.
A browse widget lets you see data and select records from all the records associated with a database query. You can define a static browse widget with or a dynamic browse widget with The CREATE BROWSE statement. The browse can be either a read-only tool for browsing through records, or it can be an editing tool for updating records.
A browse widget lets you see data and select records from all the records associated with a database query. You can define a static browse widget with or a dynamic browse widget with The CREATE BROWSE statement. The browse can be either a read-only tool for browsing through records, or it can be an editing tool for updating records.
A browse widget lets you see data and select records from all the records associated with a database query. You can define a static browse widget with the or a dynamic browse widget with the CREATE BROWSE statement. The CREATE BROWSE is valid only in a graphical interface. A browse can be either a read-only tool for browsing through records, or it can be an editing tool for updating records, depending on the options you specify.
You can move and resize the browse and its components. Specifically, in graphical interfaces, you can move and resize the browse, move and change the width of the browse-column, and change the height of the browse-row. You can do all this through direct manipulation (by pointing, clicking, and dragging) and through the 4GL. For more information, see the OpenEdge Development: Progress 4GL Handbook.
You can also use the mouse wheel to scroll the browse widget horizontally and vertically in Windows. When you rotate the mouse wheel up and down, the browse scrolls vertically up and down. When you rotate the mouse wheel up and down while holding down the Ctrl key, the browse scrolls horizontally left and right. You can specify the number of rows the browse scrolls up and down per click of the mouse wheel on the Wheel tab in the Windows Mouse Properties dialog box (accessed through the Windows Control Panel).
The following figure shows a read-only browse widget:
The following figure shows an updateable browse. Note the inline editing capability in the focused row:
Progreso 4GL Referencia AnteriorSiguiente widget de BUSCA -------------------------------------------------- ------------------------------
Un widget de exploracin le permite ver los datos y registros de seleccin de todos los registros relacionados con una consulta de base de datos. Puede definir un widget de exploracin esttico con el o un widget de navegacin dinmica con la declaracin BUSCA CREAR. La BUSCA CREAR slo es vlida en una interfaz grfica. Una exploracin puede ser una herramienta de slo lectura para la navegacin a travs de los registros, o puede ser una herramienta de edicin para la actualizacin de los registros, dependiendo de las opciones que especifique.
Puede mover y cambiar el tamao de la exploracin y de sus componentes. En concreto, en las interfaces grficas, se puede mover y cambiar el tamao de la exploracin, mover y cambiar el ancho de columna de navegacin de la, y cambiar la altura de la fila de exploracin. Usted puede hacer todo esto a travs de la manipulacin directa (por apuntar, hacer clic y arrastrar) ya travs de la 4GL. Para obtener ms informacin, consulte el Desarrollo OpenEdge: Progreso 4GL Manual.
Tambin puede utilizar la rueda del ratn para desplazarse el widget de exploracin horizontal y vertical en Windows. Al girar la rueda del ratn hacia arriba y hacia abajo, los rollos de exploracin vertical de arriba y abajo. Al girar la rueda del ratn hacia arriba y hacia abajo mientras mantiene pulsada la tecla Ctrl, los rollos de exploracin horizontal a izquierda y derecha. Se puede especificar el nmero de filas de los pergaminos de navegacin hacia arriba y abajo por clic de la rueda del ratn sobre la pestaa de la rueda en el cuadro de dilogo Propiedades de mouse de Windows (se accede a travs del panel de control de Windows).
La siguiente figura muestra una de slo lectura navegar tu currculum:
La siguiente figura muestra un browse actualizable. Tenga en cuenta la capacidad de edicin en lnea de la fila enfocada:
Attributes
When describing browse attributes, it is important to understand the scope of each attribute. An attribute can apply to:
The browse widget as a whole. A single browse column. A single browse cell. In this case, the attribute applies to only the single cell at the intersection of the named column and the focused row. Both the browse as a whole and a cell or column. For example, in the same trigger, you could change the background color of the whole browse to blue and the background color of the current cell to yellow. When you want to reference an attribute that applies to the browse as a whole, the correct syntax is as follows:
browse-name:attribute-name IN FRAME frame-name (for a static browse) OR browse-handle:attribute-name (for a dynamic or static browse)
The IN FRAME qualifier is only necessary for a static browse to avoid ambiguity.
When an attribute applies to a column or a cell, the identifier is the field or variable name as listed in the DEFINE BROWSE statement. This identifier is known as the column name. The browse columns widget-handle may also be used. Here is the syntax:
column-name:attribute-name IN BROWSE browse-name (static browse column) OR column-handle:attribute-name (dynamic or static browse column) Atributos
Al describir los atributos de navegacin, es importante para comprender el alcance de cada atributo. Un atributo puede aplicarse a:
El widget de exploracin en su conjunto. Una columna de navegacin nica. Una sola clula de exploracin. En este caso, el atributo se aplica slo a la clula nica en la interseccin de la columna con nombre y la fila enfocada. Tanto el navegar como un todo y una clula o columna. Por ejemplo, en el mismo gatillo, puede cambiar el color de fondo de toda la exploracin a azul y el color de fondo de la celda actual a amarillo. Cuando se quiere hacer referencia a un atributo que se aplica a la exploracin en su conjunto, la sintaxis correcta es la siguiente:
navegar-name: nombre-atributo EN MARCO frame-name (para una exploracin esttica) Or navegar mango: atributo de nombre (para una exploracin dinmica o esttica)
El calificador MARCO EN slo es necesaria para una navegacin esttica para evitar la ambigedad.
Cuando un atributo se aplica a una columna o una celda, el identificador es el nombre del campo o variable como aparece en la declaracin BUSCA DEFINIR. Este identificador se conoce como el nombre de la columna. Widget de mango del la columna de navegacin tambin se puede utilizar. Esta es la sintaxis:
nombre-columna: nombre-atributo EN BUSCA browse-nombre (columna de navegacin esttica) Or columna-mango: nombre-atributo (columna dinmica o esttica de exploracin)
The IN BROWSE qualifier is only necessary for a static browse to avoid ambiguity, but it is good programming practice to always include it, especially when you reference the same field as a separate widget type.
The following table lists all the attributes for the browse widget, whether they are readable and writeable, and their scope:
El calificador BUSCA EN slo es necesaria para una navegacin esttica para evitar la ambigedad, pero es una buena prctica de programacin para incluir siempre, sobre todo cuando se hace referencia al mismo campo como un tipo de widget de separado.
La siguiente tabla muestra todos los atributos para el widget de exploracin, si son de lectura y escritura, y su mbito de aplicacin:
Event type Supported Universal key function events Navigation key function events Field editing key function events Default keyboard events Mouse events General direct manipulation events Frame-only direct manipulation events Developer events Mtodo INSERT-ROW () Mtodo seleccionado IS-ROW () Mtodo de carga-puntero del ratn () El mtodo MOVE-AFTER-TAB-PUNTO () Mtodo Move-ANTES-TAB-PUNTO () El mtodo MOVE-COLUMNA () MUDANZA A-BOTTOM () mtodo El mtodo MOVE-A-TOP () Mtodo REFRESH () SCROLL-A-CURRENT ROW-mtodo () Mtodo fila seleccionada-Scroll-A () Mtodo SELECT-ALL () Mtodo-ROW ENFOCADO SELECT-() SELECT-NEXT-ROW () mtodo Mtodo SELECT-PREV-ROW () Mtodo SELECT-ROW () Mtodo de ROW-reposicionado SET () Mtodo de seleccin establecidos () Mtodo validate ()
Eventos
Tipo de evento Apoyado Eventos de teclas de funcin Universal Eventos de funcin Tecla de navegacin Eventos de teclas de funcin de edicin de Campo Eventos de teclado predeterminados Los eventos del mouse Eventos de manipulacin directa Generales - Slo Frame eventos de manipulacin en directo - eventos para desarrolladores DEFAULT-ACTION DESELECTION DROP-FILE-NOTIFY END statement END-MOVE1 END-RESIZE1 END-ROW-RESIZE1 END-SEARCH1 ENTRY statement LEAVE statement OFF-END 4 OFF-HOME ROW-DISPLAY ROW-ENTRY ROW-LEAVE SCROLL-NOTIFY SELECTION START-MOVE1 START-RESIZE1 START-ROW-RESIZE1 START-SEARCH1 VALUE-CHANGED Windows only.
See also The chapter on the browse in the OpenEdge Development: Progress 4GL Handbook.
-------------------------------------------------------------------------------- PreviousNext DEFAULT-ACCIN Cancelacin DROP-ARCHIVO-NOTIFICAR instruccin END FIN-Move1 FIN-RESIZE1 FIN-ROW-RESIZE1 FIN-SEARCH1 instruccin ENTRADA LEAVE OFF-END 4 OFF-HOME ROW-DISPLAY ROW-ENTRADA ROW-ABANDONO SCROLL-NOTIFICAR SELECCIN START-Move1 PUESTA EN RESIZE1 PUESTA EN FILA-RESIZE1 PUESTA EN SEARCH1 CAMBIADO-VALOR Slo para Windows.
ver tambin El captulo dedicado a la exploracin en el desarrollo OpenEdge: Progreso 4GL Manual.