Progress
Programming
Handbook


Defining a Frame Family

The first step in defining a frame family is to define a child frame of a root frame. To define a child frame of any frame, you set the child frame’s FRAME attribute to the widget handle of the parent frame, as shown in the following procedure (p-fof1.p):

p-fof1.p
DEFINE FRAME fparent WITH SIZE 60 by 10 TITLE "Parent".
DEFINE FRAME fchild WITH SIZE 40 by 5 TITLE "Child".
FRAME fchild:FRAME = FRAME fparent:HANDLE.

DISPLAY WITH FRAME fparent.
ENABLE ALL WITH FRAME fparent.
ENABLE ALL WITH FRAME fchild.

WAIT-FOR WINDOW-CLOSE OF CURRENT-WINDOW. 

By default, Progress positions a child frame at row 1, column 1 (the upper–left corner) of the parent frame’s display area. Thus, when you specify position options for a child frame, they are relative to the parent frame’s display area, not the window’s. In this way, you can define and position child frames of child frames (descendant frames) to any practical depth.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095