FORM Core Code Interface
- Last UpdatedNov 14, 2022
- 1 minute read
F&M will call the following routine, which must be provided by the core code, to notify core-code of each form with CORE control type:
CORFRM ( int FORM, int WMID, int FTYPE, int LSTR, string FORMNAME )
Where:
-
FORM is the F&M handle for the form element
-
WMID is the DRUID driver handle for the form. This will allow the core-code to provide its own callbacks for the form, and to organize the form’s core managed gadgets and menus.
-
FTYPE is the form's type (DIALOG, BLOCKINGDIALOG, DOCUMENT).
-
FORMNAME is a name-string unique to the application-module. It has a length of LSTR.
The following F&M routines will be useful for core code management of PML forms with core managed gadgets:
|
Command |
Effect |
|---|---|
|
FLDFRM ( int LNAM, string FNAME, |
Load named form from a definition file. FORM is a handle to the created form object. |
|
FDSCOR ( int FORM, |
Display the given form. IERR is a PML error token. It takes the value 0 when there was no error. |
|
FHDCOR ( int FORM, |
Hide the given form. If CANCEL=true it means the form was cancelled. Otherwise it was OK'ed. |