This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Implementing custom message handler for StarterWare grlib

Hello,

I'm using the grlib_demo example from the latest StarterWare package for AM335x.

What I would like to obtain is to defer the drawing of some widgets when e.g. i have to perform an operation or i want a delay between different elements of the GUI.

I tried adding delays() in the OnXXXXPaint functions, (e.g. OnPrimitivePaint()) with no luck, all I get is a delay in switching pages.

I have read the docs and I think I should define a new message and define custom handlers for the Widgets.

I would like to override the e.g. long CanvasMsgProc(tWidget *pWidget, unsigned long ulMsg, unsigned long ulParam1, unsigned long ulParam2) 

and implement two messages:

e.g. MSG_ANIMATE_STEP, MSG_GUI_TICK

This way I could implement a FSM to handle all the various functions linked to the GUI.

But I could not find any example or documentation on how to implement a custom message and a custom message handler for StarterWare's grlib widgets.

Do you have any ideas?

Thank you