menus

Reduce ASP.NET menu control size (without 3rd party libraries)

I have a fairly simple ASP.NET 2.0 menu control using a sitemap file and security trimmings. There are only 21 menu options, but the results HTML of the menu is a whopping 14k. The site is hosted on our company's intranet and must be serverd to people worldwide on limited bandwidth, so I'd like to reduce the size of the menus. What is th...

GLUT pop-up menus

Is it easy to create GLUT pop-up menus for my OpenGL application? If yes, how? ...

Anyway to stop Windows bringing app to front when displaying a context menu on tray icon?

We are experiencing this annoying problem where we have a context menu on our tray icon, if we display this context menu we have to SetForegroundWindow and bring it to the front. This is really annoying and not at all what we want. Is there a workaround, I notice that Outlook MS Messenger and other MS apps do not suffer this, perhaps th...

What is the Best Way to Populate a Menu Control on a Master Page

Database? Page variables? Enum????? looking for opionions here. ...

What is the best way to cache a menu system locally, in the browser?

I have a very large cascading menu system with over 300 items in it. (I know it's large but it's a requirement.) Currently, it's written in javascript so the external file is cache by browsers. To improve search engine results I need to convert this to a css menu system. I realize the browsers will also cache external stylesheets but is ...

How do I make custom MenuHeaders in WPF with accelerators?

I'd like to make some custom MenuHeaders in WPF so I can have (for example), an icon and text in a menu item. Normally using MenuItems, if you populate the Header field with straight text, you can add an accelerator by using an underscore. eg, _File However, if I wanted to put in a UserControl, I believe this function would break, how ...

In Applescript, how can I find out if a menu item is selected/focused?

I have a script for OS X 10.5 that focuses the Search box in the Help menu of any application. I have it on a key combination and, much like Spotlight, I want it to toggle when I run the script. So, I want to detect if the search box is already focused for typing, and if so, type Esc instead of clicking the Help menu. Here is the scri...

In Applescript, how can I get to the Help menu Search field, like Spotlight?

In OS X, in order to quickly get at menu items from the keyboard, I want to be able to type a key combination, have it run a script, and have the script focus the Search field in the Help menu. It should work just like the key combination for Spotlight, so if I run it again, it should dismiss the menu. I can run the script with Quicksi...

Creating a custom menu in .NET WinForms

Using .NET 2.0 with WinForms, I'd like to create a custom, multi-columned menu (similiar to the word 2007 look&feel, but without the ribbon). My approach was creating a control, and using a left/right docked toolstrip, I have constructed a similar look&feel of a menu. However, there are a few shortcomings of this solution, such as the...

How can I use multiple sitemap file without multiple root nodes

Hi, I'm using a ASP.NET menu control. I'd like the menu to look like this, where link 1 through 10 are in one sitemap file and link 11 through 20 in another. root --link 1 (...) --link 10 --link 11 (...) --link 20 However, sitemap file MUST have a root which I cannot seem to suppress. Any thoughts? -Edoode ...

What's the right way to dynamically choose menu items for a context menu in WinForms?

I'm trying to make a context menu for a control that is "linked" to a main menu item. There are two fixed menu items that are always there and an arbitrary number of additional menu items that might need to be on the menu. I've tried solving the problem by keeping a class-level reference to the fixed menu items and a list of the dynami...

jQuery & Prototype Conflict

Hi, I am using the jQuery AutoComplete plugin in an html page where I also have an accordion menu which uses prototype. They both work perfectly separately but when I tried to implement both components in a single page I get an error that I have not been able to understand. uncaught exception: [Exception... "Component returned failure...

Am I subscribing to YUI Menu events improperly?

I've read and followed YUI's tutorial for subscribing to Menu events. I also looked through the API and bits of the code for Menu, MenuBar, and Custom Events, but the following refuses to work // oMenuBar is a MenuBar instance with submenus var buyMenu = oMenuBar.getSubmenus()[1]; // this works buyMenu.subscribe('show', onShow, {foo: ...

Using system's standard Edit menu in a Palm OS app

How can I use the standard Edit menu in my Palm OS application, instead of having to implement my own Cut/Copy/Paste/Keyboard handlers? ...

Looking for alternatives or improvements to drop down lists/menus on websites

Drop-down lists, menus and combo boxes are all very common user interface elements. Users are accustomed to seeing these elements in native applications and sometimes web apps, but there are a few problems with them. You have to aim the mouse. Some menus collapse when you mouse out, and some have submenus that you have to aim at to ex...

best way to generate and highlight menu items on server (asp.net)

I have an ascx component, that holds two-level menu, because there are several user types, and the menu needs to be computed on server. Anyways - I'm also doing the highlighting of current menu item on server (adding a selected class/css to an item). Highlighting with javascript is not good option, because there is content in datagrids...

Why do some menus open to the left of the cursor and others to the right?

In some applications (notably Visual Studio 2008, Windows Explorer, Internet Explorer) all of the menus open to the left of the cursor. In other apps (Firefox, ACDSee) they open to the right. Then there's Foxit Reader, where the ones in the menu bar open to the left and the context menu opens to the right. This is very annoying. Is ther...

Multiple menu items in bold face

I've been investigating the effort needed in getting menu items displayed in bold face - without having to draw the menu myself - and discovered MFS_DEFAULT menu item state after some googling. The MSDN documentation mentions MFS_DEFAULT Specifies that the menu item is the default. A menu can contain only one default menu item,...

How do I create a menu separator bar in WPF using code

I am creating menus in WPF programatically using vb.net. Can someone show me how I can add separator bar to a menu in code? No xaml please. ...

ASP.NET 2.0: How to bind an asp:Menu to an SqlDataSource?

i've found how to bind an asp:Menu to XML. i've found how to bind an asp:Menu to a site map (which is really binding it to XML). How do you bind an asp:Menu to a database? The .NET Framework provides multiple data sources: HierarchicalDataSourceControl XmlDataSource SiteMapDataSource DataSourceControl SqlDataSource AccessDataSo...