Skip to content

Mixing sub-menus and scrolling lines? #58

Answered by VasilKalchev
fred-76 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @fred-76.

To achieve this menu structure, you need to put every LiquidScreen in its own LiquidMenu, since you're navigating the menu hierarchically (not scrolling through the screens). Here is an example:

// lName - LiquidLine object
// sName - LiquidScreen object
// mName - LiquidMenu object
// fName - callback function

uint16_t var = 123;

LiquidLine lEquipment(0, 0, "Equipment");
LiquidLine lParameters(0, 0, "Parameters");
LiquidLine lGo(0, 0, "Go");
LiquidScreen sMain(lEquipment, lParameters, lGo);
LiquidMenu mMain(lcd, sMain);

LiquidLine lFocal(0, 0, "Focal length: ", var);
LiquidLine lAperture(0, 0, "Aperture: ", var);
LiquidLine lExposure(0, 0, "Exposure: ", var);
LiquidScr…

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by VasilKalchev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Schlappo22
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: question Need help using the repository.
4 participants
Converted from issue

This discussion was converted from issue #45 on November 04, 2021 19:32.