Hi
Is wxEVT_UPDATE_UI still supported for wxWidgets 2.9 ?
I use it to control the menu/toolbar enable or disable state.
For wxWidgets 2.8 release, it didn't use much of resources.
But for wxWidgets 2.9, my application use about 50% cpu resources and event worst for OSX, It took around 80++ cpu resources .
After remove wxEVT_UPDATE_UI, the application back to normal.
A bit worry for changing this portion of code
wxEVT_UPDATE_UI on wxWidgets 2.9.4 Topic is solved
Re: wxEVT_UPDATE_UI on wxWidgets 2.9.4
Hi,
It works fine for me. What happens if you run the wx samples that use it e.g. 'widgets'?
Regards,
David
Yes.Is wxEVT_UPDATE_UI still supported for wxWidgets 2.9 ?
It works fine for me. What happens if you run the wx samples that use it e.g. 'widgets'?
Regards,
David
Re: wxEVT_UPDATE_UI on wxWidgets 2.9.4
ha ha. that is my mistake. The toolbar didn't refesh after enabled/disabled.
I addd in a refresh statement. That cause it using a lot resources.
funcToolBar->EnableTool(ID, false);
funcToolBar->Refresh(); --> that is the problem
opps.. I make a mistake for few years ..
I should using event->Enable() to change the state ..
I addd in a refresh statement. That cause it using a lot resources.
funcToolBar->EnableTool(ID, false);
funcToolBar->Refresh(); --> that is the problem
opps.. I make a mistake for few years ..
I should using event->Enable() to change the state ..