I would like to start getting notifications only after all widgets in a window are initialised.
my current solution is to start a short timer at screen build, but I am looking for a more elegant solution.
Any ideas?
Thanks
void do_notification(WM_MESSAGE * pMsg)
{
WM_HWIN hItem = 0;
int NCode;
int objIx, wmId;
TcObject * pObj ;
if(notificationsDisableTimer > 0)
return ; // no notification fo a while - need to updat screen first
.
.
.
}
static void cbScreen(WM_MESSAGE * pMsg) {
int i;
char * barMsg;
TGuiQdata guiMSg ;
switch (pMsg->MsgId)
{
case WM_INIT_DIALOG:
initScreenObjects(pMsg);
refreshScrennObjects(pMsg->hWin, 1);
break;
case WM_NOTIFY_PARENT:
do_notification(pMsg);
break;
.
.
.
}
my current solution is to start a short timer at screen build, but I am looking for a more elegant solution.
Any ideas?
Thanks
void do_notification(WM_MESSAGE * pMsg)
{
WM_HWIN hItem = 0;
int NCode;
int objIx, wmId;
TcObject * pObj ;
if(notificationsDisableTimer > 0)
return ; // no notification fo a while - need to updat screen first
.
.
.
}
static void cbScreen(WM_MESSAGE * pMsg) {
int i;
char * barMsg;
TGuiQdata guiMSg ;
switch (pMsg->MsgId)
{
case WM_INIT_DIALOG:
initScreenObjects(pMsg);
refreshScrennObjects(pMsg->hWin, 1);
break;
case WM_NOTIFY_PARENT:
do_notification(pMsg);
break;
.
.
.
}