Actions
Support #1214
closedExecuting Some Job before show WWidget. WMenu/WMenuItem
Start date:
03/28/2012
Due date:
% Done:
0%
Estimated time:
Description
Hi,
I need to execute a function of the object to show, before it is displayed, the object is a derivative of WWidget, which implements the method onBind, which is the need to run. How I can do that?. I have tried using itemSelected signal, but I can not run the method.
this is my code:
void CMainScreenGui::onMenuItemSelected(WMenuItem * menuItem){
CWControlsWidget * cwcw = static_cast<CWControlsWidget*>(menuItem->itemWidget());
this~~eventDisplayer~~>setStatus(cwcw->getPath());
cwcw->onBind();
}
Updated by Alexander David Cruz Márquez over 12 years ago
I found a solutions. thanks.
Actions