08-26-2009 03:37 AM
I have a main screen , which is displaying custom titlebar and a custom tollbar.
After that i have vertical field manager, in that i added a listfield.
I want to update the listfield with new data , but i don't want to change anything on the mainscreen other than listfield.
How can i do this
Solved! Go to Solution.
08-26-2009 04:02 AM
Thank you for your quick reply.
Where i will pass the new data.
For first time i am putting the listfield data inside a vector in the class's constructor.
For updating the listfield with new data , how i will pass the new data?
Please help me...
08-26-2009 04:29 AM - edited 08-26-2009 04:30 AM
Create a public method inside the class and inside the method:
a. update the vector with new data
b. call invalidate();
Now when you need to update the list just call that method.
08-26-2009 05:52 AM
Correct. The vector, array you are using to draw the rows of list, first update that vector before invalidate the listfirld. Now invalidate() will repaint the list with new values.