GADGET 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 gadget with CORE control type:
CORGDT ( int GADGET, int WMID, int GTYPE, int LSTR, string GDTNAME )
Where:
-
GADGET is the F&M handle for the gadget element.
-
WMID the DRUID driver handle for the gadget. This will allow the core-code to provide its own callback for the gadget.
-
GTYPE is the gadget type as defined above.
-
GDTNAME an application module unique gadget name string of length LSTR.
The element GADGET is owned by an F&M FORM element, so its owner (in this case the form) element can be obtained from:
FQUOWN( int GDTELT, int FORM, int OWNER ).
The following F&M routines may be useful for core code management gadgets:
Query immediate owner and owning form of given element ELT (gadget, menu, menufield etc.):
FQUOWN ( int ELT, int FORM, int OWNER )
Where:
-
FORM and OWNER are returned arguments.
-
FORM/GADGET/MENU/MENUFIELD/ELT/OWNER is the F&M handle for an element.
-
IERR is a PML error token, where 0 means no error.