OpenMenuOS ships five built-in popup types, each with a distinct color scheme, default icon, and interaction behavior. Choosing the right type ensures your UI communicates intent clearly without extra configuration. Every type is accessible through a one-line convenience method onDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/The-Young-Maker/OpenMenuOS/llms.txt
Use this file to discover all available pages before exploring further.
PopupManager or through a PopupConfig struct when you need additional control.
Popup types
- INFO
- SUCCESS
- WARNING
- ERROR
- QUESTION
Enum value:
Convenience method:
Color scheme: Blue header
Default title:
Dismissal: Manual — stays open until the user presses OK.Use INFO for neutral messages that give the user context without implying urgency.
PopupType::INFOConvenience method:
PopupManager::showInfo(message, title)Color scheme: Blue header
Default title:
"Information"Dismissal: Manual — stays open until the user presses OK.Use INFO for neutral messages that give the user context without implying urgency.
PopupResult enum
Everyshow* call and PopupManager::update() returns a PopupResult value. Use it to branch your sketch logic after the user interacts with a popup.
Returned by
update() on every iteration while the popup is still open and the user has not yet acted. Also returned immediately by all show* methods on the call that opens the popup.Returned when the user presses the OK or Yes button, or when auto-close fires.
Returned when the user presses the Cancel or No button.
Alias for
OK. Both values compare equal. Prefer OK in new code unless you are writing a question dialog and want the intent to be explicit.Alias for
CANCEL. Both values compare equal. Prefer CANCEL in new code unless you are writing a question dialog and want the intent to be explicit.Handling results in loop()
Encoder navigation
When a rotary encoder is configured viamenu.setEncoderPin(clk, dt), the popup system supports encoder-driven button selection:
- Rotate the encoder to move the highlight between the OK and Cancel/No buttons.
- Press the encoder button to confirm the highlighted selection.