03-24-2010 10:51 AM - edited 03-24-2010 10:56 AM
Hi,
From my main panel (UIR) and through this functions:
CmtScheduleThreadPoolFunction (DEFAULT_THREAD_POOL_HANDLE, Myfunction, (void *) &DataMyfunction, &threadID);
CmtWaitForThreadPoolFunctionCompletion(DEFAULT_THREAD_POOL_HANDLE, threadID,OPT_TP_PROCESS_EVENTS_WHILE_WAITING);
I display a new panel
Myfunction
{
DisplayPanel2()
ProcessSystemEvents()
ProcessDrawEvents()
Another_function()
DisplayPanel3()
}
Another_function
{
Update Value controls and color label controls (for the 2nd panel)
}
The problem is that the control value update its value always I change It with SetCtrVal
But the label color doesn´t change its value always I change it with SetCtrlAtribute (, ATTR_LABEL_COLOR, ))
It only changes when I Display a 3th panel.
I think ProccesSystemEvents() should solve this problem
Any Ideas?
Solved! Go to Solution.
03-25-2010 11:21 AM
03-26-2010 05:57 AM
ok,
Calling ProcessDrawEvents() after a SetCtrlAttribute(), the UIR updates.
I need do so, because the UIR need to update after each change, not after all changes...
Thanks a lot for your replay