Project

General

Profile

Actions

Feature #712

closed
MQ KD

WPopupMenuItem: Setting a destination WResource

Feature #712: WPopupMenuItem: Setting a destination WResource

Added by Max Quatember over 15 years ago. Updated almost 15 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.

ML Updated by Momo LALMI over 15 years ago Actions #1

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

MQ Updated by Max Quatember over 15 years ago Actions #2

Hi Mohamed!

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

Regards,
Max

ML Updated by Momo LALMI over 15 years ago Actions #3

Hi,
may be the following will work :

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

MQ Updated by Max Quatember over 15 years ago Actions #4

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

KD Updated by Koen Deforche about 15 years ago Actions #5

  • 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

KD Updated by Koen Deforche almost 15 years ago Actions #6

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: PDF Atom