Monday, December 11th 2017, 1:11am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

johanan

Beginner

Date of registration: Sep 11th 2014

Posts: 55

1

Wednesday, January 25th 2017, 2:46pm

Stop notifications until screen is fully initialized

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;
.
.
.
}