31 views
in GUI Development by
Is that possible to create vertical list with different component class

1 Answer

0 votes
by

Hello,

maybe the article Mix different types of items within the same list provides you the desired information.

Best regards

Paul Banach

by

Thanks for the answer I need some clarification, after adding the list via wrapper class whether we can modify the content of the class in vertical list using VerticalList.InvalidateItems( 0, VerticalList.NoOfItems - 1 );

 

 

For Example Here is my screen DisplayScreen

by

Hello,

yes, when the item contents are changed and you want the list to be refreshed, you use InvalidateItems(). Ideally, the wrapper class exposes properties for all values available in all individual item types. In the OnLoadItem slot method you assign then the values to the properties depending on the type of the item in question.

The article referenced in my answer above contains an example project. In this example the method OnLoadItem setups the item class and the title of the item when loading new items. You can enhance this by further properties, e.g.:

Best regards

Paul Banach

by
Hello,

Once I add a rectangle in wrapper class and I set for the particular 2 class component its working Fine Here is the Log also I am getting the same view address for Item class, Item Title and Rectangle enable bit in wrapper class

 

[12.11.2021 19:00:57] Trace Application::setModeComponent.Init (1:1) : trace: "MOde Constructor".
[12.11.2021 19:00:57] Trace Application::WrapperItem.OnSetItemClass (15:1) : trace: "Constructor View ", @02B788B0.
[12.11.2021 19:00:57] Trace Application::WrapperItem.OnSetTitle (12:1) : trace: "Title View", @02B788B0.
[12.11.2021 19:00:57] Trace Application::setting_apapMode1.OnLoadItem (18:1) : trace: "itemClass", Application::setModeComponent.
[12.11.2021 19:00:57] Trace Application::setting_apapMode1.OnLoadItem (19:1) : trace: "itemTitle", "Mode".
[12.11.2021 19:00:57] Trace Application::DeviceClass.Init (57:1) : trace: "Device Class Constructor".
[12.11.2021 19:00:57] Trace Application::setAPAP_Min_Prs.Init (2:1) : trace: "APAP_MIN_PRS Constructor".
[12.11.2021 19:00:57] Trace Application::WrapperItem.OnSetItemClass (15:1) : trace: "Constructor View ", @02B78F84.
[12.11.2021 19:00:57] Trace Application::WrapperItem.OnSetTitle (12:1) : trace: "Title View", @02B78F84.
[12.11.2021 19:00:57] Trace Application::setting_apapMode1.OnLoadItem (18:1) : trace: "itemClass", Application::setAPAP_Min_Prs.
[12.11.2021 19:00:57] Trace Application::setting_apapMode1.OnLoadItem (19:1) : trace: "itemTitle", "Minimum Pressure".
[12.11.2021 19:00:57] Trace Application::WrapperItem.OnSetInnerRect (8:1) : trace: "Rect Set", @02B78F84.
[12.11.2021 19:00:57] Trace Application::setAPAP_Max_Prs.Init (2:1) : trace: "APAP_MAX_PRS Constructor".
[12.11.2021 19:00:57] Trace Application::WrapperItem.OnSetItemClass (15:1) : trace: "Constructor View ", @02B78144.
[12.11.2021 19:00:57] Trace Application::WrapperItem.OnSetTitle (12:1) : trace: "Title View", @02B78144.
[12.11.2021 19:00:57] Trace Application::setting_apapMode1.OnLoadItem (18:1) : trace: "itemClass", Application::setAPAP_Max_Prs.
[12.11.2021 19:00:57] Trace Application::setting_apapMode1.OnLoadItem (19:1) : trace: "itemTitle", "Maximum Pressure".
[12.11.2021 19:00:57] Trace Application::WrapperItem.OnSetInnerRect (8:1) : trace: "Rect Set", @02B78144.
[12.11.2021 19:00:57] Trace Application::WrapperItem.OnSetItemClass (15:1) : trace: "Constructor View ", @02B78F38.
[12.11.2021 19:00:57] Trace Application::WrapperItem.OnSetTitle (12:1) : trace: "Title View", @02B78F38.
[12.11.2021 19:00:57] Trace Application::setting_apapMode1.OnLoadItem (18:1) : trace: "itemClass", Application::backToMenuComp.
[12.11.2021 19:00:57] Trace Application::setting_apapMode1.OnLoadItem (19:1) : trace: "itemTitle", "Menu".

 

but If I add a widget ValueDisplay every view address got collapsed

[12.11.2021 19:01:21] Trace Application::setModeComponent.Init (1:1) : trace: "MOde Constructor".
[12.11.2021 19:01:21] Trace Application::WrapperItem.OnSetItemClass (15:1) : trace: "Constructor View ", @02B78F84.
[12.11.2021 19:01:21] Trace Application::WrapperItem.OnSetTitle (12:1) : trace: "Title View", @02B7785C.BUFF.
[12.11.2021 19:01:21] Trace Application::setting_apapMode1.OnLoadItem (18:1) : trace: "itemClass", Application::setModeComponent.
[12.11.2021 19:01:21] Trace Application::setting_apapMode1.OnLoadItem (19:1) : trace: "itemTitle", "Mode".
[12.11.2021 19:01:21] Trace Application::DeviceClass.Init (57:1) : trace: "Device Class Constructor".
[12.11.2021 19:01:21] Trace Application::setAPAP_Min_Prs.Init (2:1) : trace: "APAP_MIN_PRS Constructor".
[12.11.2021 19:01:21] Trace Application::WrapperItem.OnSetItemClass (15:1) : trace: "Constructor View ", @02B77CD0.
[12.11.2021 19:01:21] Trace Application::WrapperItem.OnSetTitle (12:1) : trace: "Title View", @02B77BA0.BUFF.
[12.11.2021 19:01:21] Trace Application::setting_apapMode1.OnLoadItem (18:1) : trace: "itemClass", Application::setAPAP_Min_Prs.
[12.11.2021 19:01:21] Trace Application::setting_apapMode1.OnLoadItem (19:1) : trace: "itemTitle", "Minimum Pressure".
[12.11.2021 19:01:21] Trace Application::WrapperItem.OnSetInnerRect (8:1) : trace: "Rect Set", @02B77BA0.BUFF.
[12.11.2021 19:01:21] Trace Application::setAPAP_Max_Prs.Init (2:1) : trace: "APAP_MAX_PRS Constructor".
[12.11.2021 19:01:21] Trace Application::WrapperItem.OnSetItemClass (15:1) : trace: "Constructor View ", @02B76E90.
[12.11.2021 19:01:21] Trace Application::WrapperItem.OnSetTitle (12:1) : trace: "Title View", @02B7700C.BUFF.
[12.11.2021 19:01:21] Trace Application::setting_apapMode1.OnLoadItem (18:1) : trace: "itemClass", Application::setAPAP_Max_Prs.
[12.11.2021 19:01:21] Trace Application::setting_apapMode1.OnLoadItem (19:1) : trace: "itemTitle", "Maximum Pressure".
[12.11.2021 19:01:21] Trace Application::WrapperItem.OnSetInnerRect (8:1) : trace: "Rect Set", @02B7700C.BUFF.
[12.11.2021 19:01:21] Trace Application::WrapperItem.OnSetItemClass (15:1) : trace: "Constructor View ", @02B78014.
[12.11.2021 19:01:21] Trace Application::WrapperItem.OnSetTitle (12:1) : trace: "Title View", @02B78B5C.BUFF.
[12.11.2021 19:01:21] Trace Application::setting_apapMode1.OnLoadItem (18:1) : trace: "itemClass", Application::backToMenuComp.
[12.11.2021 19:01:21] Trace Application::setting_apapMode1.OnLoadItem (19:1) : trace: "itemTitle", "Menu".

 

How do the Value Display widget will behave in the Core::View
by
Hello,

I'm sorry, but I don't understand your question. You can try to reduce your application case to a very simple example and upload it here for analysis purpose.

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

...