Project

General

Profile

Actions

Support #1214

closed
AC KD

Executing Some Job before show WWidget. WMenu/WMenuItem

Support #1214: Executing Some Job before show WWidget. WMenu/WMenuItem

Added by Alexander David Cruz Márquez over 14 years ago. Updated over 14 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();
}

AC Updated by Alexander David Cruz Márquez over 14 years ago Actions #1

I found a solutions. thanks.

KD Updated by Koen Deforche over 14 years ago Actions #2

  • Status changed from New to Closed
Actions

Also available in: PDF Atom