Project

General

Profile

Actions

Bug #1703

closed

WMenu with Wt::Horizontal Orientation layout in vertical fashion.

Added by Rajeev Gajbhiye almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
02/16/2013
Due date:
% Done:

0%

Estimated time:

Description

I am trying to build menubar using following statement.

WMenu* menus = new WMenu(_main_panel,Wt::Horizontal);

I expected the resulting menus to layout horizontally. In fact it used to happen this way in version 3.2.3. However, in version 3.3.0-rc1, it lays out them vertically as a list. Also, when mouse is pointed over it, the mouse cursor doesn't change to the shape of hand indicating it is clickable but takes the form of cursor indicating that it is over a text field.

I have attached simple example. Here am trying to place two items in menu which are Welcome and News.


Files

MenusApp.tar.bz2 (148 KB) MenusApp.tar.bz2 Rajeev Gajbhiye, 02/16/2013 06:39 AM
Actions #1

Updated by Koen Deforche almost 12 years ago

Hey,

We've removed the deprecated support for specifying the orientation in the C code. You now need to change the rendering of the menu from vertical (the browsers's (CSS) default for rendering a UL+LI) to horizontal using CSS stylesheets. There are many examples for horizontal menu's on the web whose CSS you can directly apply to a Wt WMenu.

Regards,

koen

Actions #2

Updated by Rajeev Gajbhiye almost 12 years ago

Hi,

I didn't noticed that. I am able to get the job done through CSS. I also noticed that only one of the constructor is not deprecated, which takes WContainerWidget as argument. Which means the constructor taking WStackedWidget and WContainerWidget is also deprecated. Does this mean that WMenu will no more support WStackedWidget in future?

By the way, you may have to set this bug as invalid so that it doesn't show as open one.

Regards,

Rajeev.

Actions #3

Updated by Koen Deforche almost 12 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche

Hey,

No, we certainly keep the WMenu + WStackedWidget combination, this works well and is obviously highly useful.

The other 'deprecated' constructor was indeed a documentation mistake. I've fixed this now !

Regards,

koen

Actions #4

Updated by Koen Deforche almost 12 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF