nmpHideMenus (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

MX2i pro, CX1 pro/flex/warp, SX1, MX2 turbo, NX-200, NX-400, NX-900, LX2

Firmware version:

2.84 / 1.00.00

Nav. API level:

2


This function will show or hide menus on the NMP.

This can be used to make the screen area available to the map larger.

 

Input:

menus : DINT

This is a mask that determines the visible menus. Each bit represents a menu, where 1 is visible, and 0 is hidden.

The following values can be used to control the menus:

0

- All menus hidden.

-1

- All menus visible.

-2

- Menu bar hidden.

-3

- Custom buttons hidden.

-4

- Menu and custom buttons hidden.

 

 

Returns: INT

0

- Success.

-1

- Navigation interface is not open.

-2

- Error communicating with navigation device.

-4

- NMP rejected command.

-11

- This is not supported by the device (e.g. the device is not an NMP device).

-12

- Navigation interface is busy.

 

Declaration:

FUNCTION nmpHideMenus : INT;
VAR_INPUT
  menus   : DINT;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
BEGIN
  ...
  //Hide menu bar
  nmpHideMenus(menus := -2);
  ...
END;
END_PROGRAM;