Consultor Eletrônico



Kbase P23814: How to Change the Tab Order in ADM2
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Unverified

GOAL:

How to change the tab order in adm2

FIX:

Use the adjustTabOrder procedure:
Changes the tab order of SmartObjects.

Parameters:

INPUT phObject AS HANDLE

Handle of the smart object.

INPUT phAnchor AS HANDLE

Handle of either another SmartObject procedure or a widget-handle of the object that will anchor the SmartObject.

INPUT pcPosition AS CHARACTER

"After " if the SmartObject is moved after the anchor.

"Before " if the SmartObject is moved before the anchor.

Returns: Nothing (procedure).

Notes: adjustTabOrder calls are generated by the AppBuilder in adm-create-objects. Calls to this procedure can be added to an application to do dynamic re-ordering of the tab order of SmartObjects in a SmartContainer at run time.

Examples:

/* This example will make sure that the tab order position of a SmartPanel in a SmartWindow is immediately before the fill-in field FIELD-1 in that window. */RUN adjustTabOrder (INPUT hSmartPanel, INPUT FIELD-1:HANDLE IN FRAME {&FRAME-NAME}, INPUT "BEFORE":U).