Appbuilder: Modify frame parent value

Kalan

Member
Hi,
It would be helpful if you can clarify this.

I have one main window named as fMain and two frames Frame1 and Frame2. Frame1 parent is fMain and Frame2 parent is Frame1. Is there any way to change the Frame2 parent value as fMain in design time? Sorry I don’t don’t see any possibility in property sheet.

Thanks.
 

oli

Member
You can't change the parent attribute of a widget through the property sheet.
But you can do it a design time in several ways:
- Drop the Frame2 somewhere on the fMain beside Frame1 (but not above Frame1);
- Cut the Frame2, select the fMain, then paste Frame2 on it;
- Edit the .w using the Procedure Editor, locate the "Runtime Attributes and AppBuilder Settings" section and the "REPARENT FRAME" comment, then change the following ASSIGN statement:
Code:
/* REPARENT FRAME */
ASSIGN FRAME Frame1:FRAME = FRAME fMain:HANDLE
  FRAME Frame2:FRAME = FRAME Frame1:HANDLE.
into
Code:
/* REPARENT FRAME */
ASSIGN FRAME Frame1:FRAME = FRAME fMain:HANDLE
  FRAME Frame2:FRAME = FRAME fMain:HANDLE.
 
Top