menu

CSS: Dynamic width on Menu

Exact Duplicate of http://stackoverflow.com/questions/994208/css-help-making-menu-fluid The menu works fine with fixed width but I would like the words to wrap ONLY on the top menu categories. I need to be able to have n categories and have the width be evenly distributed. Obviously n would be within reason (I am not going to have ...

Can I disable the button part of a XUL toolbarbutton, but not the menu?

I have a toolbarbutton and in certain cases it needs to be disabled. However, I want the menupopup child to still be enabled. Is this possible? If not, any suggestions on how to achieve similar functionality? I don't want to use two separate buttons for two reasons: I like the look of the entire button being outlined when I hover over...

How do get menu to open to the left in WPF?

I have a menu (with menuitems) in WPF. Unfortunately when I click on the menu heading it opens the menu to the right. The problem is that there is stuff on the right that I don't want it to overlap. How do I tell WPF to open the menu to the left? Do I need to do a control template? (control templates seem so heavy handed for such bas...

Add menu item to another application.

gAlwaysIdle is a windows application which will add a menu item to Gtalk context menu. How can I do this to an application using vb.net or c#.net? ...

add item to right-click menu in Excel chart

How to add item to right-click menu in Excel chart using VBA? Excel is 2007. Chart is standalone sheet. ...

Dropdown menu, problem when resizing the browser

Hi, I am doing an horizontal dropdown menu. It looks like this : [menu1][menu2][menu3][menu4] But when I resize (less wide) my browser, the menu appears like : [menu1][menu2] [menu3][menu4] I want it to remain in line all the time! Thank you for your help. Michaël EDIT : my CSS file : /* General */ #cssdropdown, #cssdropdown...

Dynamic User Menu in Django

Is there a way to have a user menu that'll change according to the permissions assigned to the user group a user belongs to? I'm thinking of something that checks for these permissions at the view level, and also removes menu options a user doesn't have permission to. ...

Get user group in a view

I want to display a menu that changes according to the user group of the currently logged in user, with this logic being inside of my view, and then set a variable to check in the template to determine which menu items to show....I'd asked this question before, but my logic was being done in the template. So now I want it in my view......

Building a menu the MVC way in PHP

Hello I'm building my own PHP MVC framework. Not with the intention of using it. But I'm trying to learn PHP5 OO and the MVC design pattern. I've read a lot of tutorials and got the basics working but now I'm stuck since things are getting more complicated. My framework uses the following URL structure: /controller/action. Optionally f...

C# - TreeView construction

I am trying to construct a TreeView from a Menu. My Code is like this: public class MenuExtractionUtility { public TreeView MenuTraverse(MainMenu mainMenu) { TreeView treeView = new TreeView(); TreeNode mainNode = new TreeNode(); foreach (MenuItem mi in mainMenu.MenuItems) ...

Is there a elegant way to implement selectable tabs/menus in ASP.net

I am struggling to find a way of implementing a tab style menu system in ASP.net. The tabs look great from the HTML/CSS standpoint and are implemeted in the Master page so I don't have access to the body tag from the content page. what I am trying to work out is how to vary the "active tab" based upon the page the user is accessing. I c...

Equivalent effect of custom SiteMapResolve for SiteMapDataSource

Hi there, By adding a custom handler to the SiteMapResolve event, I can update sitemap url's on the fly, by some logic that I define. This is ok for SiteMapPath controls, that appear to use this SiteMapResolve functionality... however I want to achieve a similar result for an asp.net Menu control that uses a SiteMapDataSource. Alter...

Right click menu under winforms

I want to make a right click menu for my winforms app. It will have the same two things in it no matter where it pops up. A little hunting and pecking leads me to the conclusion that winforsm either doesn't support this in a trivial way or has hidden it under some name I havn't guessed yet. I think I can make it work with the Click even ...

Control Height of <li> in IE 7

I have a menu built with <ul> and <li> tags. I want to have small separators between sections. For the separators, I just set a background color and a short height on an <li>. Looks very nice... except in IE7 where the <li> seems to refuse to change its height to be shorter than all the other <li>s in the same <ul>. I have tried differen...

wxPython menu doesn't display image

I am creating a menu and assigning images to menu items, sometime first item in menu doesn't display any image, I am not able to find the reason. I have tried to make a simple stand alone example and below is the code which does demonstrates the problem on my machine. I am using windows XP, wx 2.8.7.1 (msw-unicode)' import wx def getBm...

WPF - How to find item clicked on in menu handler method?

How can the handler method of a WPF menu item determine which item in a ListView was clicked on? Edit: The menu is a context menu which has been set for the ListView. The problem is to find which ListView item has been clicked on when the context menu item is selected. ...

Center LI elements in a CSS menu in IE?

I need to center a CSS menu that has an unknown width. I found a solution. By setting the UL tag to display:table or display:inline-table the LI elements can be aligned in the center. This solution did not work in IE. Is there another solution that will work in IE, with only HTML / CSS? If you want a good look at my code i've pasted it...

How to prevent Javascript Menu from getting hidden under Flash Video (SWFObject )

Hello How to prevent Javascript Menu from getting hidden under Flash Video (SWFObject ). I am using Open Flash Chart and the chart is displaying fine in my php shoppping cart, but my javascript menu is getting hidden behind the Flash Chart. How to correct this problem? Here is my script code: <script type="text/javascript"> swfob...

SharePoint problem while adding custom menu item in document library

Hi, I have written a feature(Site scoped) that adds custom menu items to the New Menu and EditControlBlock of a SharePoint 2007 document library. These menu items should show up only when the user has add and edit permissions for that document library. This works great except for one particular case where the user has only read permissi...

winform: how to rearrange the menu?

based on .designer.cs, i infer that the menu's arrangement is based on the order you add them on menuStrip's AddRange method: this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.windowsMenu, this.helpMenu}); is there a way i can change the order of menu? i put dynamically generated men...