text widget in list item widget | developer.brewmp.com text widget in list item widget | developer.brewmp.com

Developer

text widget in list item widget

I am creating a list item widget which consists of 2 text boxes.
When I try to enter any text ,the text gets displayed in the first text wiget of all the items in the list.Ideally it should get displayed in the text widget of only the focussed item.
Can somebody please help me out with this.

tej.g wrote:I am creating a list item widget which consists of 2 text boxes.
When I try to enter any text ,the text gets displayed in the first text wiget of all the items in the list.Ideally it should get displayed in the text widget of only the focussed item.
Can somebody please help me out with this.
please post the code..
hmm .. never tried using text widget in a list thought :D :D

tej.g wrote:I am creating a list item widget which consists of 2 text boxes.
When I try to enter any text ,the text gets displayed in the first text wiget of all the items in the list.Ideally it should get displayed in the text widget of only the focussed item.
Can somebody please help me out with this.
please post the code..
hmm .. never tried using text widget in a list thought :D :D

You might have to post the code about it.. there could be some problem with the TextModel/Listener associated with the TextWidget in the List.. Looks like all the TextWidgets in your List are using the same textmodel data.. not sure.. its better to post the code!!

You might have to post the code about it.. there could be some problem with the TextModel/Listener associated with the TextWidget in the List.. Looks like all the TextWidgets in your List are using the same textmodel data.. not sure.. its better to post the code!!

1)I have added two text widget in a constraint container.
2)Decorate constraint container with borderwidget
3)set the listener indexer for the list widget using IWIDGET_SetIndexer.
4)Decorate border widget with list widget.
5)Attaches a scrollbar to the list widget.
6)retrieve the view model for the list widget and set a listener to it using IMODEL_AddListenerEx.
I suppose the same text controller is getting attached to all the items in the list since I am using an indexer.How do I get the control for the text being written. :confused:

1)I have added two text widget in a constraint container.
2)Decorate constraint container with borderwidget
3)set the listener indexer for the list widget using IWIDGET_SetIndexer.
4)Decorate border widget with list widget.
5)Attaches a scrollbar to the list widget.
6)retrieve the view model for the list widget and set a listener to it using IMODEL_AddListenerEx.
I suppose the same text controller is getting attached to all the items in the list since I am using an indexer.How do I get the control for the text being written. :confused:

What are you storing in the list model? It might also help to post your indexer.
-Erik

What are you storing in the list model? It might also help to post your indexer.
-Erik