PML Customisation
User Guide
Core Managed Objects
:
Gadget Core Support
: GADGET Core Code Interface
GADGET Core Code Interface
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.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.