163 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

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

...