menuitem

How to filter posts by day, week and month in Wordpress from people clicking on a horizontal menu link

Hi everyone, I am trying to make a filter on a set of menu buttons, so when you click on today it shows all the posts for today, then if you click on this week it shows all the posts for this week and then last week and last month. Does anyone know what code I need to use to make this work from a menu button? ...

Set Statusbar Text on Mouse Hover - Works for controls but not MenuItems

I devised the following code for displaying a control's Tag property on mouseover. The code works fine for standard controls such as Labels and TextBoxes but I cannot get it to work for my MenuItems (more specifically ToolStripMenuItems). Could y'all please take a look at my code and tell me what I did wrong? Thanks in advance! public v...

RelayCommand not firing on MenuItem click WPF MVVM

Hi all, I have menu item on my WPF form that runs a import routine, I have bound the command property to a ICommand property in my view model but for some reason the method won't fire. This is the xaml: <Menu Height="21" Margin="0,-2,0,0" VerticalAlignment="Top" Grid.ColumnSpan="2"> ...

How to Highlight dynamically loaded menu item in ASP.Net?

Hi All, i am facing some problem with Menu item highlighting on user selection. I am loading all menu items from database, I used StaticMenuItemStyle CssClass="Item" StaticSelectedStyle CssClass="ItemSelected" StaticHoverStyle CssClass="ItemHover" and DynamicSelectedStyle CssClass="ItemSelected" But it is not working for me. ...

TComponet / any other Superclass and its child item detection.

I have Popup menu control on form ( grr, I most likely gonna make it dynamic - hate static tools ). It has got Item with SubMenu. SubMenu has three Menu Items ( TMenuItem class ). I need to check by taking Sender param in if..then statement whenever procedure has been called by the Item with SubMenu or by SubMenu Items. I tried differe...

How do you make height of context menu items not be fixed (ie scale to size of the particular item) in .Net?

See the two images below. I don't want each item in the menu to be the height of the largest. It should size to fit the contents. I've played around with a number of properties and haven't been able to prevent this behavior. Is it possible? ...

Databinding to functions in dynamically-loaded plugins

I have several MenuItems whose Commands are bound to my ViewModel. Until today, all of them execute properly. Now I have added a MenuItem whose ItemsSource is bound to an ObservableCollection. The point of this MenuItem is to enumerate a list of plugins so that the name of all plugins show up. Then when the user clicks on a plugin na...

Drupal 6 dynamic menu item

I need to create a menu item, which changes its title and link if a user has a certain condition, or not. Drupal caches all the menues, so i can't really think of a way to do that. For example, user has a node attached to his profile, menu item is "Create blabla" (link node/add/blabla) User doesn't have the node, menu item is "Create no...

Disabling top-level menu item does not disable children, in spite of what MSDN says?

According to http://msdn.microsoft.com/en-us/library/aa984351%28VS.71%29.aspx Disabling the first or toplevel menu item in a menu (for example, the "File" menu item in a traditional File menu) disables all the menu items contained within the menu. Likewise, disabling a menu item that has submenu items disables the submenu items. A...

override display appearance of accelerator keys in JMenuItems in Java/Swing

I've noticed that on some macs the JMenuItem uses the word "space" to indicate that the space bar is the key binding. On other macs a symbol is used (looks like a short capital U). I'd prefer the "space" presentation since it's more transparent to users. Is there any way to override how the LAF graphically represents the accelerator key?...

How to databind MenuItem collection directly into XAML

I have a UserControl which contains a ListBox. And ListBox uses another UserControl as DataTemplate. <ListBox x:Uid="SectionList" x:Name="SectionList" ItemsSource="{Binding}"> <ListBox.ItemTemplate> <DataTemplate> <Grid> <expander:ExpanderDataTemplate/> </Grid> ...

How to show the outcome of joomla menu item type as a module?

I am not sure how to put it ... but I am using certain modules in my joomla site which can be shown only using a menu item e.g. Phoca gallery, hwdvideoshare etc. These modules can not be displayed on any specific position, instead a menu item has to be created which links to these modules and shows them according to the configuration par...

copyright free collection of resource images for Delphi menu items and toolbar buttons

Every time I need to create a menu or toolbar with actions I end up collecting some images extracted from different application and hand tuning them with the image editor. This is time consuming and boring (eventhough I admit that might be a refreshing break in some ocasions). Do you know of any collection of such images? I would like ...

JSF Adding Action Listeners

I'm creating a MenuItem dynamically and I want to add a custom listener when the MenuItem is clicked. I've tried adding addActionListener and setActionListener but neither of these get called when the link is clicked. It appears that there is a List called "listeners" attached to MenuItem (I can see this when debugging a MenuItem set...

Drupal 6 primary links: how do I link to my latest news?

I've defined a custom content type - news. I also have a menu item - latest news - that links to one of the news nodes. I want it to link to the latest of them. How would I do that? ...

WPF: Is it standard that when a menuitem is disabled the icon is not greyed out?

I have menuitems with icons and when it is disabled the icon remains the same. Is it up to me to supply a disabled icon and, if so, does this also apply to menuitems bound to a command? ...

WPF Pass MenuItem selected as MethodParameter to ObjectDataProvider

I am trying to pass Selected MenuItem's Text/Header string as the MethodParameter to my ObjectDataProvider. I have seen examples like these on the internet but haven't been able to adapt it to the Menu Control specifically. I am new to WPF and need some help accomplish this. Any help would be greatly appreciated. Below is the code snipp...

menuitem id in xml format can't be an integer? huh. really?

ok, in menu.add, you add an integer menuitem id. But when you specify the menu in xml, @+id can't take an integer, so you can't test the id for the menu item as an integer in a switch statement. What obvious thing am I missing, because surely an inconsistency this bone-stupid couldn't have passed muster with all those wonderful geniuse...

Writing Custom Menubar Extra

How can I make a Menu Extra like the Battery Meter in Cocoa? I can make a Status Item, but they are not movable. ...

How do I put a listing of files into a menu?

I have a folder with .txt files in it. How can i make my menuitem get those .txt files and put the filenames in the menuitem, so that it creates a list of all .txt files in that folder. So when i put a .txt in the folder the program automatically creates the menu item. Does someone knows how to do this, or perhaps an example? ...