This functionality should be obtainable by a callback installed on the tab control. The callback receives EVENT_TAB_CHANGED event every time the user clicks a tab to make a panel active; it is not fired if the tab is clicked for a panel already active nor is a EVENT_LEFT_CLICK event fired in this case.
To setup the callback you can operate two ways:
- In case you start from a canvas on a panel, add the callback to the canvas control in the UIR editor or in the code BEFORE calling EasyTab_ConvertFromCanvas ()
- In case you create the tab from scratch, simply indicate the callback in CallbackFunction parameter in EasyTab_Create () function. The callback has the usual prototype of standard control callbacks.
I modified the standard simpdemo project to illustrate this.