Skip to content

CHOOSE without macros behaves strangely #445

Description

@Tomin123

Hi.

Could you pls. point me how to use menu without macros (I need more than 16 items in list) ?

I have raplacement of CHOOSE() macro. It works, but strangely.

  • during selecting of value the first line on an lcd disp. the first line is changing (in opposite to CHOOSE())
  • whenever I return to this "submenu", it does NOT show propper line/value (according to value in settingsTmp.aux1Mode)

I did not find any example for CHOOSE option. :-(
Many thanks for pointing me in advance.

menuValue<int> auxMode_1(
	"v1",
	auxModes::auxWhenPower1,
	(callback)doNothing,
	noEvent
);
menuValue<int> auxMode_2(
	"v2",
	auxModes::auxWhenOut1,
	(callback)doNothing,
	noEvent
);
menuValue<int> auxMode_3(
	"v3",
	auxModes::auxWhenPower2,
	(callback)doNothing,
	noEvent
);

prompt* chAuxMode1_items[] = {
	&auxMode_1,
	&auxMode_2,
	&auxMode_3
};

menuVariant<int> chAuxMode1(
	(constText*)"AUX output",
	settingsTmp.aux1Mode,
	(idx_t)sizeof(chAuxMode1_items)/sizeof(prompt*),
	chAuxMode1_items,
	(callback)doNothing,
	noEvent,
	noStyle
);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions