FRAME parameters

<< Click to Display Table of Contents >>

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

FRAME parameters

FRAME parameters

The specifications for each parameter of FRAME are as follows:

 

Parameters

Commentary

Name

(Required)

The view name (used in OpenViewForm/SetZoom, etc.).

 

 

BaseFormName

(Required)

Specify the name of the original form you want to display in the frame.

FormName

(Required)

Form name (any name). Specify the form name to reference it as an object from the script. It must not overlap with the form names of dialogs, forms embedded in View control, or forms in other frames.

Stretch

Expand the form size to fit the frame size. If nothing is specified, "DEFAULT" will be set.

 

"NONE" - no stretching

"STRETCH_FULL" - Stretch to fit the frame size

"STRETCH_KEEPRATE" - Stretch the image to fit the frame (keep aspect ratio)

"DEFAULT" - default value (same as root property Stretch)

AlignmentX

AlignmentY

If you specify "NONE" for Stretch, the form will be displayed at a fixed size. In that case, if the frame size becomes larger than the form size, specify where to display the form. If nothing is specified, it will be displayed in the center.

 

In the case of AlignmentX

"LEFT" - Left justified

"Center" - Display in the center horizontally

"RIGHT" - Right-justified

 

In the case of AlignmentY

"TOP" - Left justified

"Center" - Display in the vertical center

"BOTTOM" - Right-justified

 

Example) AlignmentX="LEFT" AlignmentY="TOP"

The text is displayed aligned to the top left.

 

The color outside the form area can be specified with the form property ViewFillColor. By specifying the same color as the form color, the form will appear to be expanded even if the frame size is larger than the form size.

 

ScrollBarX

ScrollBarY

If you specify "NONE" in Stretch, the form will be displayed at a fixed size. In that case, if the frame size becomes smaller than the form size, specify whether to display scroll bars. If nothing is specified, scroll bars will be displayed automatically.

 

"AUTO" - Scrollbars will be displayed automatically when needed.

"Y" - Scrollbars are always displayed regardless of frame size.

"N" - Scrollbars will never be displayed, regardless of frame size.

 

BorderStyle

The border style of the frame.

"NONE" - no border (if the form and separator colors are the same, you can make the separator invisible)

" FLAT " - Black line frame (no stereoscopic display)

"3D_SUNK1" - Display as a sunken frame in 3D (separators appear raised).

"3D_SUNK2" - Shows a deeper depression than 3D_SUNK1.