Questions tagged [menu-items]

A menu item is a child element of a menu that provides the user a means to view and execute a specific application operation.

A menu item is a child element of a menu that provides the user a means to view and execute a specific application operation. A menu item may have an accelerator key which provides the user a quick way to execute the menu item operation. A menu item in turn can consist of other child menu items.

100 questions
1
vote
1 answer

How do we prevent underscore being used as a control key indicator?

I am trying to add a menuitem, like this: Items.Add(new MenuItem() { Header = var_from_a_loop; }); The var_from_a_loop has some underscores. Say, var_from_a_loop = "A_B_C_D". When run, this becomes "AB_C_D", that is, it removes the first…
anupamb
  • 472
  • 4
  • 13
1
vote
0 answers

How to reference MenuItem from Android Unit Test

I'm trying to grab a reference of an Activity's MenuItem to Assert that it's displaying the correct drawable as its icon. I've tried reference the MenuItem by its ID (as several people have mentioned after some searching) by doing @Test public void…
Ivan
  • 665
  • 2
  • 10
  • 28
1
vote
1 answer

What's the difference between p:menuitem's url and outcome attributes?

According to the Primefaces 6.2 user guide the attributes stand for Name | Default | Type | Description [...] url | null | String | Url to be navigated when menuitem is clicked [...] outcome | null | String | Navigation case outcome where…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
1
vote
1 answer

OnOptionsItemSelected on Android not working in activity

Here is the problem, I'm using CollapsingToolbarBehavior which I get from this link https://github.com/saulmm/CoordinatorBehaviorExample. But when I click on an icon in Toolbar when collapse, it's like a dead link. Not even calling…
1
vote
1 answer

Animated loading icon in ActionBar

I'm developing an app with an account system linked to Firebase. Well, the sign up process takes a few seconds and I wish to implement a rotating loading icon like this one in the action bar: The only problem is that I don't know how to make the…
Roman Dev
  • 103
  • 2
  • 11
1
vote
1 answer

RCP e4 disable menu items based on other menu items

I have menu that has menu items "Add File1", "Add File2, "Save". Each has an associated handler and command. Now I need to disable "Save" menu item, until both "Add File1" and "Add File2" are run atleast once. How can I achieve this? I assume it can…
anjalli
  • 53
  • 6
1
vote
1 answer

New Android toolbar : Unhide/Hide Menu Action Icons when Logged In Logged Out

I have a Google Sign in Activity which signs in using google account following this example from Google: public class SignInActivity extends AppCompatActivity implements GoogleApiClient.OnConnectionFailedListener, View.OnClickListener…
Jaye
  • 132
  • 1
  • 10
1
vote
1 answer

Is it possible to add ComboBox as ContextMenu item in DataGridView WindowsForms C#?

![enter image description here][1]I am trying to add a combobox to ContextMenu on a datagrid when a user right clicks, the menu will pop up. It should show exit and assign to bankID menu options where the bank ID is a combobox dropdown. I did some…
bhishan
  • 7
  • 6
1
vote
1 answer

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…
the berserker
  • 1,553
  • 3
  • 22
  • 39
1
vote
1 answer

My CSS responsive dropdown menu links not working in the responsive view

I am failry new to the whole responsive web design field. I have managed to create a CSS based menu from a template I have found, the UL works well in its linear form but minute it moves to drop form @media 480px and below, the hover side works but…
jasonh
  • 329
  • 2
  • 13
1
vote
1 answer

Android: How i can set value for from database?

I populate my menu items with menu_items.xml, which is located in values. my menu_items.xml looks like: Where to stay Where to…
Zeljko Ivanovic
  • 373
  • 3
  • 5
1
vote
0 answers

Navigation menuitems different when loading to the server

When I am on my local the menu items work perfectly there is 3 visible menuitems and when I hover over the first the drop down menu items appear. they are in a horizontal view and it looks great. when I load it up to my server the menu items become…
user2615302
  • 194
  • 2
  • 14
1
vote
1 answer

Sub-MenuItem Selection in MVVM

I have the following XAML used to populate a sub-MenuItem listing with RecentDocuments:
MoonKnight
  • 23,214
  • 40
  • 145
  • 277
1
vote
1 answer

Always getting error-"Object reference not set to an instance of an object."

I tried this way...so that when i click any menuitem in button1 it will check and check the same menuitem in the second button...but some where am getting error...I want to write it in better way .so that it will work as i need with out any…
kida
  • 167
  • 2
  • 3
  • 15
1
vote
0 answers

how to make joomla 3 custom components menu type hierarchical (like in joomla 1.5)

I am upgrading an old Joomla 1.5 component to Joomla 3.0. When I try to add Joomla component in old system to menu, I get these selections: But when I try to add my new component to menu, and write xml files in template catalogs, as described in…
arunas_t
  • 1,576
  • 1
  • 10
  • 14