How to update spinner list in controlpanel

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

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,
           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

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

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

1 follower


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

Seen: 70 times

Last updated: Jan 13 '15