MO_notifyModeChange Function (ROM Call 0xDE)

events.h

void MO_notifyModeChange (short Flags);

Sends mode change notify message to all applications.

MO_notifyModeChange sends a CM_MODE_CHANGE message to all applications (note that the "Graph" application will receive this message first). This function also has a parameter Flags, which contains a set of flags which describes what exactly was changed. This parameter is attached to message in the extra field of the message, so it gives more information to applications on what they need to check.

The flags can be one of the following as enumerated in MoNotifyFlags:
MO_NOTIFY_FOLDERThe current folder has changed.
MO_NOTIFY_GRAPH_COUNT2 graph mode or 1 graph mode.
MO_NOTIFY_GRAPH_TYPE_1Graph mode change.
MO_NOTIFY_GRAPH_TYPE_2Graph mode change for graph 2 if in 2 graph mode.
MO_NOTIFY_SPLITThe screen size has changed.
MO_NOTIFY_ANGLEThe angle mode has changed.
MO_NOTIFY_PRECISIONThe precision has changed between EXACT, APPROX and AUTO.
MO_NOTIFY_FIXFix digits or float precision change.
MO_NOTIFY_NUMBER_FORMATExponential format: Normal, scientific or engineering.
MO_NOTIFY_VECTOR_FORMATRectangular, cylindrical or spherical.
MO_NOTIFY_COMPLEX_FORMATReal, rectangular or polar.
MO_NOTIFY_PRETTY_PRINTPretty Print has been switched on or off.
MO_NOTIFY_UNIT_SYSTEMSI, ENG/US or CUSTOM unit system.
MO_NOTIFY_BASEDEC, HEX or BIN base.
MO_NOTIFY_LANGUAGEAMS 2.00 or higher: The language mode has changed.
MO_NOTIFY_DESKTOPAMS 2.07 or higher: The Apps Desktop has been switched on or off.


Uses: EV_sendEvent, reset_control_flags, MenuUpdate, ST_eraseHelp, ST_helpMsg, EV_appA, EV_appB, OO_firstACB, OO_NextACB, FirstWindow
Used by: MO_digestOptions, setup_unit_system