Project

General

Profile

Actions

Support #1214

closed

Executing Some Job before show WWidget. WMenu/WMenuItem

Added by Alexander David Cruz Márquez about 12 years ago. Updated almost 12 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();

}

Actions #1

Updated by Alexander David Cruz Márquez almost 12 years ago

I found a solutions. thanks.

Actions #2

Updated by Koen Deforche almost 12 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF