What is the Main of the frame?

<< Click to Display Table of Contents >>

Manual > Screen Creation Guide > Forms and Dialogs/Frames/Views > Frames >

What is the Main of the frame?

What is the Main of the frame?

The frame specified by the "Main" parameter of FRAMESET is treated as the main screen, and will be the primary frame in which the form will be displayed when the OpenForm method is called.

 

In the example below, "Frame1" is the main screen, and when you enter "::OpenForm("Form03")", Form03 will be displayed in Frame1 (the frame on the left). If you want to switch forms in frames other than the main screen during runtime, use the OpenViewForm method.

 

<FRAMESET Cols="50%,*" Main="Frame1">

   <FRAME Name="Frame1" BaseFormName="Form01" FormName="FrameForm1"></FRAME>

   <FRAME Name="Frame2" BaseFormName="Form02" FormName="FrameForm2"></FRAME>

</FRAMESET>