653 views
in GUI Development by
Is there a tutorial or example on ho to implement and format a scroll list with selectable components?

1 Answer

+1 vote
by
 
Best answer

Hello Riccardo,

please see the chapter Vertical List. It explains diverse aspects of scrollable lists incl. custom items (see Specify the class of the items within the list) and item selection (see Select an item within the list).

I hope it helps you further.

Best regards

Paul Banach

by

Can you tell me why the items gets cut like this?

 

and if i extend the area of the scroll list the get full displayed

 

by

Hello Riccardo,

without knowing your implementation I can only make rudimentary assumptions:

1. In the slot method associated to the Vertical List's property OnLoadItem you have to adjust the size of the item to fit the size of the list. (See Implement the OnLoadItem slot method to load the items). The implementation of the slot method should end with a line similar to:

itemView.Bounds.size = VerticalList.ViewSize;

2. The component implementing the list item does not adjust its content when the component itself changes its size. Or it adjusts the content incorrectly. Assuming you have the item component filled entirely with a rectangle view and you want the component to adjust the size of the rectangle view so it continues filling the entire item, configure the views Layout property properly. (See the chapter Configuring component layout). For example:

I hope one of the ideas helps you further to fix the issue.

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

...