867 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 - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...