Consultor Eletrônico



Kbase P34236: How to walk the widget tree
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/29/2007
Status: Verified

GOAL:

How to walk the widget tree

GOAL:

How to retrieve widgets within a frame

FIX:

The following is a simple example of how to walk through the widgets within a Frame. It assumes that there is a single Field Group as in most windows.

The procedure to handle the "walk" is as follows:DO:
DEFINE VARIABLE h AS HANDLE NO-UNDO.
ASSIGN h = FRAME fMain:FIRST-CHILD
h = h:FIRST-CHILD.

DO WHILE VALID-HANDLE(h):
MESSAGE h:NAME SKIP h:TYPE SKIP VIEW-AS ALERT-BOX INFO BUTTONS OK.
ASSIGN h = h:NEXT-SIBLING.
END.
END.