Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Unified Engineering

MENUFIELD 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 field with CORE control type:

CORMNU ( int FLDELT, int WMID, int FTYPE, int LSTR, string FLDNAME )

Where:

  • FLDELT is the F&M handle for the field.

  • WMID is the DRUID driver handle for the field. This will allow the core-code to provide its own callback for the menu item.

  • FTYPE is the field type (0-4). These values correspond to the following types: CALLBACK, TOGGLE, SEPARATOR, MENU, FORM.

  • FLDNAME is the core-code/AppWare agreed menu field name string of length LSTR.

F&M will provide the following interface for core-code to manage the menufield state: Menu field active, visible, checked.

FSTMFA( int FLDELT, logical ACTIVE, logical UPDATE=.TRUE. )

FSTMFV( int FLDELT, logical VISIBLE, logical UPDATE=.TRUE. )

FSTMFT( int FLDELT, logical CHECK, logical UPDATE=.TRUE. )

The last example will be ignored by non-toggle fields.

Note that the FLDELT element is owned by an F&M MENU element, so it’s owning menu and form elements can be obtained from:

FQUOWN( int FLDELT, int FORM, int OWNER )

TitleResults for “How to create a CRG?”Also Available in