The following code is my problem i get the first-child of the main window which is default frame. It then gets the children of that frame and steps through using next sibling, i grab the next frame which i assume is a child of the window and therefore a sibling of default frame but no, i get a question mark when messaging handle. How can I identify the relationship of the second frame to the first frame which is firt-child of the main window, hope i am making some sense here
see code
DEFINE INPUT PARAMETER widthMultiplier AS DECIMAL NO-UNDO.
DEFINE INPUT PARAMETER heightMultiplier AS DECIMAL NO-UNDO.
DEFINE VARIABLE h AS HANDLE NO-UNDO.
DEFINE VARIABLE h2 AS HANDLE NO-UNDO.
DEFINE VARIABLE f AS HANDLE NO-UNDO.
h = {&WINDOW-NAME}:HANDLE.
f = {&WINDOW-NAME}:HANDLE.
MESSAGE f VIEW-AS ALERT-BOX.
h = h:FIRST-CHILD.
main:
DO WHILE VALID-HANDLE (h):
MESSAGE h:TYPE VIEW-AS ALERT-BOX.
IF h:TYPE = "FRAME" THEN
DO:
h:SCROLLABLE = TRUE.
IF h:WIDTH-PIXELS * widthMultiplier <= 200 OR h:HEIGHT-PIXELS * heightMultiplier <= 200 THEN
DO:
ASSIGN ckeepframeSize = "YES" .
LEAVE main.
END.
ASSIGN cKeepFrameSize = "NO".
h:X = h:X * widthMultiplier NO-ERROR.
h:Y = h:Y * heightMultiplier NO-ERROR.
h:WIDTH-PIXELS = h:WIDTH-PIXELS * widthMultiplier NO-ERROR.
h:HEIGHT-PIXELS = h:HEIGHT-PIXELS * heightMultiplier NO-ERROR.
h:VIRTUAL-WIDTH-PIXELS = h:WIDTH-PIXELS.
h:VIRTUAL-HEIGHT-PIXELS = h:HEIGHT-PIXELS.
h:SCROLLABLE = FALSE.
h2 = h:FIRST-CHILD.
h2 = h2:FIRST-CHILD.
INNER_blk:
DO WHILE VALID-HANDLE (h2):
IF CAN-QUERY (h2, "PRIVATE-DATA") THEN DO:
IF h2

RIVATE-DATA = "frame" THEN
MESSAGE h2

RIVATE-DATA VIEW-AS ALERT-BOX.
h2:WIDTH-PIXELS = h2:WIDTH-PIXELS * widthMultiplier NO-ERROR.
h2:HEIGHT-PIXELS = h2:HEIGHT-PIXELS * heightMultiplier NO-ERROR.
h2:X = h2:X * widthMultiplier NO-ERROR.
h2:Y = h2:Y * heightMultiplier NO-ERROR.
END.
h2 = h2:NEXT-SIBLING.
END.
h = h:NEXT-SIBLING.
MESSAGE "type 2 " h:TYPE VIEW-AS ALERT-BOX.
END.
END.
also the widget pool lists default frame as first child i.e
/* Name of first Frame and/or Browse and/or first Query */
&Scoped-define FRAME-NAME DEFAULT-FRAME
but the second frame is simply defined , i could really do with finding its relationship to window or default-frame so i can re-size these frames dynamically , have a number of forms to do. OR possibly how to set the second frame as sibling to default frame.
thanks for response anyway feedback is welcome
Simon