WPopupMenuItem: Setting a destination WResource
Like WPushButton, WPopupMenuItem should have the possibility to behave like a WAnchor.
Updated by Momo LALMI over 12 years ago
WPushButton is a little bit different from WAnchor,
the method setTarget() is available for WAnchor but not available for WPushButton,
To transform a WPushBotton to WAnchor I used to put the WPushButton object inside a WAnchor object.
May be you can do so for WPopupMenuItem...
Updated by Max Quatember over 12 years ago
I want to achieve following:
- Create a WPopupMenu
- Add a WPopupMenuItem which launches "ResourceA : public WResource" if triggered
- Add a WPopupMenuItem which launches "ResourceB : public WResource" if triggered
- Add a WPopupMenuItem which launches "ResourceC : public WResource" if triggered
- Add a WPopupMenuItem which launches "WDialog" if triggered
- and so on, and so on...
- "popup" the WPopupMenu
If I'm adding a WPopupMenu to a WAnchor like you suggested I get a "Wt internal error" on "popup" (...property 'style' is null...).
The Problem is to bind a WPopupMenuItem to a WResource...