neu-rah / ArduinoMenu

Arduino generic menu/interactivity system
GNU Lesser General Public License v2.1
929 stars 189 forks source link

Display the integer or char string #406

Open arslan437 opened 1 year ago

arslan437 commented 1 year ago

I want to display an integer in the menu maybe with FIELD. But I don't want to make it editable. Let say if there is a process that shows its status with percentage complete(i.e 80%, 90%). How can I do that ?

keldonin commented 1 year ago

Define your FIELD as usual, and just disable it in your setup() function.

void setup()
{
...
  // use index of your FIELD menu entry
  // e.g. in this case, the FIELD menu entry is at 4th position in the menu, so you must use index 3
  mainMenu[3].disable();

}