‎2020-05-08 11:39 AM
Hi,
I am using scroll List and also able to select the item by clicking that and tested that on simulator. Please check below image .
Screen1View::Screen1View() :
scrollList1ItemSelectedCallback(this, &Screen1View::scrollList1ItemSelectedHandler)
{
}
void Screen1View::scrollList1ItemSelectedHandler(int16_t itemSelected)
{
touchgfx_printf("Item Selected = %d \r\n" ,itemSelected) ;
touchgfx_printf(Rx_Buffer1[itemSelected]) ;
// Which API should I use ..
touchgfx_printf(" \r\n" ) ;
}
void Screen1View::setupScreen()
{
Screen1ViewBase::setupScreen();
scrollList1.setItemSelectedCallback(scrollList1ItemSelectedCallback); // Added
}
How do I change color of Clicked Item (Text) or put rectangle over that .
Means which API should I use .?
--
Karan
Solved! Go to Solution.
‎2020-05-12 02:34 AM
Hello,
Here is an example on how to modify elements of an item (change color, change text, etc.) in a ScrollList when this item is being clicked.
Hope this will help.
/Alexandre
‎2020-05-12 02:34 AM
‎2020-05-12 10:27 AM
Many of Thanks ..
‎2020-05-12 10:52 AM
‎2020-05-12 11:25 PM
Good :)
Hope your project will move forward now.
/Alexandre
‎2020-05-13 01:51 AM
Hi,
@Alexandre RENOUX (ST Employee)
Thanks for your appreciation ..
But As I have worked on LED,Button with FreeRTOS for Interfacing with hardware in TouchGFX Applications single bit .
ADC , UART as well .
But How to send USB File Names from (2D Array or any other means) to List items with FreeRTOS Queue .
I don't find any demo like that.
2DArray_USB_FILE_Names_Queue_Model_Presenter_View_List_Item.
Can you look attached file ... is it the right way ?
--
Karan
‎2020-05-14 01:48 AM
Hello,
As it is a different topic, could you please create a new post for this issue.
Thank you in advance,
/Alexandre
‎2020-05-14 02:28 AM
Yes, Created ...
Thanks you too..
Please have a look.
--
Karan
‎2020-05-15 10:15 AM