Project

General

Profile

Support #1214

Executing Some Job before show WWidget. WMenu/WMenuItem

Added by Alexander David Cruz Márquez over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
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();

}

#1

Updated by Alexander David Cruz Márquez over 9 years ago

I found a solutions. thanks.

#2

Updated by Koen Deforche over 9 years ago

  • Status changed from New to Closed

Also available in: Atom PDF