374 views
in GUI Development by
Hi,

i want to show the last item of a vertical list when the list is loaded. Using EnsureVisible() does not change anything. When do i have to call this method? Weather before or after InvalidateItems(), the list does not scroll.

Maybe the is another way, how to plot a list from back to front.

Kind Regards

Jonas

1 Answer

0 votes
by

Hello Jonas,

EnsureVisible() is the right method to scroll the list to a desired item. If the number of list items changes, the right moment to invoke this method would be after the number has been changed. In case of InvalidateItems(), there should not be any dependency in the order in which the methods are invoked.

Without knowing your implementation it is difficult to deduce the cause of why it is not working. If you can't find the cause of the issue yourself, you can upload in this thread a small example project demonstrating it. We can then analyze it.

Best regards

Paul Banach

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

...