Project

General

Profile

Actions

Feature #712

closed

WPopupMenuItem: Setting a destination WResource

Added by Max Quatember about 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Start date:
02/07/2011
Due date:
% Done:

0%

Estimated time:

Description

Like WPushButton, WPopupMenuItem should have the possibility to behave like a WAnchor.

Actions #1

Updated by Momo LALMI about 13 years ago

Hi,

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...

Actions #2

Updated by Max Quatember about 13 years ago

Hi Mohamed!

Ok, but how to put a WAnchor in a WPopupMenu?

Regards,

Max

Actions #3

Updated by Momo LALMI about 13 years ago

Hi,

may be the following will work :

WAnchor * a = new WAnchor(...) 
WPopupMenu * p = new WPopupMenu(...) 
a->addWidget( p ) ; 
a->setRef(...) ; 
Actions #4

Updated by Max Quatember about 13 years ago

Hi Mohamed!

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...

Best regards,

Max

Actions #5

Updated by Koen Deforche over 12 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.1.11

Hey Max,

This has been implemented now (WPopupMenuItem has a setLink() method).

Regards,

koen

Actions #6

Updated by Koen Deforche over 12 years ago

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: Atom PDF