455 views
in GUI Development by
Hello,

I have a status bar containing several images in a HorizontalList. These images vary in number and order.

The function, which allocates the images never (I'm pretty sure) inserts the same icon twice in this status bar. However, sometimes in two status bar elements the same icon is displayed.

Is it possible that embedded wizard does not always redraw all of these elements, if I change them? Can I force the HorizontalList to be redrawn?

1 Answer

0 votes
by

Hello,

if the content of an item changes (e.g. the corresponding data record has changed),it is necessary to Force the list to reload items. 

If the item contents don't change, there is no need to force the reload. The list maintains only few items (the actually visible items + few items above/below the visible area) in the memory. When the user scrolls the list, the list reqests the just exposed items to be loaded with new contents. For this purpose you have to implement the OnLoad slot method. An error in the implementation of your OnLoad slot method can produce problems as described in your question. Are you sure the method always assigns the right bitmap to the just loaded item?

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

...