Hi!

I have a problem with binding my function on the itemSelected signal from WMenu.
If the user kliched a item than the path is correctly changed but my function is
not triggered. So it's never  writes "Booom!" (in the terminal)  I have no idea
why.

<code>
// I init my menue:

    m_menu = new Wt::WMenu ( Wt::Vertical, this );
    m_menu->setRenderAsList(true);
    m_menu->setInternalPathEnabled ("/page");
    m_menu->itemSelected ().connect ( this, &MenuContainer::bums );

// add a item
    m_menu->addItem (
        Wt::WString::fromUTF8("Booom!" ),
        new Wt::WText ( "" )
    )->setPathComponent("boom");

// defining a event dealer

    void boom ( Wt::WMenuItem*  sender ) { cout << "Booom!";} ;
</code>

Is there any error?

best regards

Olaf

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to