473 views
in Getting started by
Hello,

How can I make a list that tells me what are the states of the widgets (toggle button and horizontal bar value) presented in other screen of my GUI?

 

Thanks in advance,

Lucas

1 Answer

+1 vote
by

Hello Lucas,

first of all, let me refer to the documentation of the vertical list. There you will find all details about managing scrollable content within a list. The refresh of a list can be achieved by calling InvalidateItems() - please see the section 'force the list to reload items'.

I hope this helps...

Best regards,

Manfred.

by
Hello Manfred,

Thanks for your answer.

I've seen it, but how can I check the state of my widget (on/off or value) and show it on the list?

Best regards,

Lucas
by

Hello Lucas,

the slot method OnLoadItem() of your vertical list is responsible to fill the content of your list - this means, every list item is configured via this method.

Here you can access your widgets in order to get their values, e.g. you can read the Checked property of a ToggleSwitch or the CurrentValue property of a Slider.

Is this what you are looking for? Otherwise, maybe you can explain your use-case more detailed...

Manfred.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...