0

How to update spinner list in controlpanel

asked 2014-12-02 21:25:09 -0800

yellowcybertan gravatar image

hi all,

When I remove a item from spinner list in TCL controlPanel code, like below:

           memset(&NodeList.optParams.constraintList[i], 0x0,
                           sizeof(NodeList.optParams.constraintList[i]));
           NodeList.optParams.numConstraints -= 1;

the android APP-alljoynOn can't update the spinner list real time until do leave and re-enter into this controllee.
How do I refresh ControlPanel spinner after I add/remove spinner items??

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-13 13:34:30 -0800

mitchw gravatar image

You need to send a PropertyChanged signal from your TCL control panel code after you modify the list.

Take a look at the code in ControlPanelSample.c, in the DoWork function for an example. You will need to look in your ControlPanelGenerated.h to find the correct XXXX_SIGNAL_PROPERTIES_CHANGED value to supply to the AJCPS_SendPropertyChangedSignal call.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-12-02 21:25:09 -0800

Seen: 73 times

Last updated: Jan 13 '15