sc_menu_force_mobile(boolean)

The sc_menu_force_mobile macro forces the display in mobile mode in applications of type Menu (horizontal or TreeMenu).

This macro is not compatible with the Responsive Menu application.

 

Parameters

  • true: Forces the application to run in mobile format, regardless of the device.
  • false: The application will be displayed according to the type of device, respecting automatic detection.

 

Examples:

Example 1: Forcing the mobile display of the application.

sc_menu_force_mobile(true);

Example 2: Returns to the default behavior (automatic detection).

sc_menu_force_mobile(false);