WPopupMenuItem: Setting a destination WResource
|Assignee:||Koen Deforche||% Done:|
Like WPushButton, WPopupMenuItem should have the possibility to behave like a WAnchor.
#1 Updated by Momo LALMI over 2 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...
#4 Updated by Max Quatember over 2 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...