210 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

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

...