OnBeforeOpenForm

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Events >

OnBeforeOpenForm


 

Called before the form is opened.

 


syntax

event OnBeforeOpenForm(

         viewName,

         basedFormName,

         &isOpen,

         &stretchMode,

         &openParam,

         formName,

         basedFormPath

         )

 


Parameters

 

viewName

 

Type:

character

 

The name of the view to open. For view names, see"About form names and view names"See.

 

basedFormName

 

Type:

character

 

The name of the original form to open.

 

isOpen

 

Type:

character

 

If you set isOpen to FALSE within the event, the corresponding form will be prohibited from opening.

 

stretchMode

 

Type:

character

 

Stretch mode when opening the form. You can change the stretch mode in the event.

"NONE" - no stretching

"STRETCH_FULL" - Stretch to fit the size of the dialog.

"STRETCH_KEEPRATE" - Stretch the image to fit the size of the dialog (keep aspect ratio)

"DEFAULT" - Same as the default value (the Stretch state of the main view).

 

openParam

 

Type:

character

 

Open parameters, which can be changed before opening the form.

 

formName

 

Type:

character

 

Form name.

 

basedFormPath

 

Type:

character

 

Base form path. The path including the folder name of the form to be opened. Example: Folder01.Form01

 


Supported


×

Script Action

○

Browser script

×

Calculation Expression Syntax

 

 


reference