How & when is WIDGET_MSG_KEY_UP sent to a RectangularButton, as my buttons are staying in the 'Pressed' colour once they have been pushed.
As a simple example, I have two canvasses, each has a single RectangularButton added, and each button has it's own pfnOnClick handler.
I add one Canvas widget to WIDGET_ROOT and paint it.
Whichever canvas is displayed, it's button handler removes it from WIDGET_ROOT, and adds the other Canves,
so you can simply toggle between Canvasses using the botton on each.
But once pressed, each button remains in the colour of the 'Pushed' state. They still work, ie the canvasses change & are painted, but the button colour never 'resets'
I have tried sending the buttons a WIDGET_MSG_KEY_UP in the OnClick handlers using WidgetMessageQueueAdd() but with no success.
So how/when does the button widget get a WIDGET_MSG_KEY_UP usually?
Is it the case that once the canvas is removed from WIDGET_ROOT it's widget tree will not process messages? Or discard them even?
I'll keep trying but any help would be appreciated.
Regards,
Tony Hanratty