Questions tagged [menuitem]
A menu item is a child element of a menu that provides the user a means to view and execute a specific application operation.
2,465
questions
0
votes
0
answers
15
views
React align right/hide items on ANTD 4.21 Menu
Is there a way I can add different classes or an attribute to align right 2 items of this ant design top navigation menu? Also how can I hide an item conditionally? IE if there's an user logged in, I ...
-2
votes
2
answers
47
views
WPF - MenuItem Icon bound to StaticResource shows as truncated text "pac.." [duplicate]
I'm just starting out learning WPF. Steep learning curve.
I have an icon set in App.xaml:
<Application.Resources>
<BitmapImage x:Key="Cog" UriSource="pack://application:,,,/...
0
votes
1
answer
13
views
Icon Color in Menu with Style
I've looked a lot to see if I could style the color of the menu icon but I can't find one that shows in both standard and night themes. There are styling strings I can't access easily yet.
0
votes
1
answer
17
views
How can I hide a dashboard menu item for non-admin users
I have a custom plugin made, but I want this only to be visible for admins.
I figured this one out:
function remove_by_caps_admin_menu() {
if (is_admin() ) {
}else{
remove_menu_page( 'edit.php?...
-1
votes
0
answers
11
views
How to change Avalonia NativeMenuItem property at runtime
How can I set value to the TrayIcons NativeMenuItem property at runtime.
Actually I want to change the NativeMenuItem 'Header' value and 'IsEnabled' property value at runtime.
I'm working on Avalonia ...
2
votes
1
answer
113
views
How to assign Owner to cloned TMenuItem?
When I create a TmenuItem programmatically the usual way, the Owner of the created menu item is passed as a parameter in the Create function, e.g.:
var NewMenuItem := TMenuItem.Create(MainMen1);
...
0
votes
2
answers
45
views
Navigation Drawer item Click not Works.followed Questions
I have used navigation drawer in the code.When clicking items noting happens.Tried various things from Stackoverflow and net.
import android.os.Bundle;
import android.view.MenuItem;
import android....
0
votes
2
answers
37
views
Menu items are not displayed in the Android app
everyone! I'm a beginner, developing a mobile app.
Friends, my menu items are not displayed. I click on three dots clicking on the menu. A white window appears window without menu items.
Program code &...
0
votes
3
answers
31
views
How to add mutually exclusivity on toggling dropdown menu
I have a menu with dropdown submenus. I'm trying to close an item when clicking on another, so that I don't have multiple items open at the same time. In a previous question: How to Apply ....
2
votes
1
answer
23
views
How to Apply .nextElementSibling to the next item of a dropdown menu
I have a menu that contains sub-items, when I click on them it pops up showing the items. I managed to open the first item, but I can't do the same with the second. I'm trying to use ....
0
votes
1
answer
29
views
MenuItem and toolbar missing in new activity Android Studio Unknown Bug
I am completely new to Android Studio and just learned Object-oriented programming. My project requires me to build something on open-source code. I added a new menu item to a menu and want to start ...
0
votes
1
answer
43
views
Menu content display issue
I need some help pls. I created a menu with section and courses; but the section-labels are repeating.
I would like all courses with the same section to be displayed on a single section lable.
Please ...
0
votes
1
answer
48
views
How to call another activity by menuitem? Android Studio Error: method call expected
I am completely new to Android Studio and just learned Object-oriented programming. My project requires me to build something on open-source code. I added a new menu item to a menu and want to start ...
0
votes
0
answers
11
views
React: CSVLink not working when put inside MenuItem in DropdownButton
I have code in a React file like this:
import {Dropdown, DropdownButton, MenuItem} from "react-bootstrap";
import {CSVLink} from "react-csv";
<DropdownButton id={'...
1
vote
1
answer
26
views
[Android][MenuItem]How to display title text when long press actionLayout?
I'm using MenuItem in my tool bar and some of the items require custom layouts, so I created actionLayout for them.
The UI looks fine, but when I long press the items that only have icon but no ...
0
votes
1
answer
38
views
Bold submenu items in sidebar menu
I followed the explanation below to create what I needed, but there is an additional requirement i am trying to fulfill.
highlight the navigation menu for the current page
My submenu items are anchor ...
0
votes
1
answer
54
views
Tabs of the menuItem, in Shinydashboard, not working when put items inside
Lets take the example of the reference: https://rstudio.github.io/shinydashboard/structure.html#sidebar-menu-items-and-tabs. When put more items in the menuItem(), your associate tab don't works ...
0
votes
2
answers
45
views
WPF Context Menu, MenuItem Child of Bound MenuItem not showing
I have a ContextMenu with a MenuItem bound to a list.
It is supposed to list out the items (which it does). But under each item I am attempting to show another sub-MenuItem with the header "...
0
votes
0
answers
129
views
React Material UI Select conditional rendering shows value as out of range
The use case is creating an order that has multiple order lines. I have two lists of Products: Preferred and All. Every item in Preferred is in All. I have a boolean state variable ...
0
votes
1
answer
60
views
C# WPF - Customizing the color of checkbox checkmark and background
How would I go about changing the checkmark color and background color of a checkbox?
I want the check mark icon change to white and the background color of the check mark would be light blue or ...
0
votes
0
answers
15
views
Android: how to colour the bottomNavBar icons programatically
Problem:
Update the bottomNavBar icon's colour 'programmatically'. There are several ways to update if thru XML (out of scope here as the requirement is to update on the fly).
tried code:
...
0
votes
2
answers
45
views
GTK3 MenuItem checkbutton + icon?
A piece of GTK software in my company features a menubar with some menu items in the menu bar being check buttons, and/or having an icon beside their label. However the menu is created using Gtk....
0
votes
0
answers
18
views
How can I listen to SwitchItem events on Android's Menu?
I am Using SwitchCompat on my Toolbar, I have a few Menu Items, one of which is this Switch.
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://...
2
votes
0
answers
36
views
Command executes multiple times for menuitems added dynamically to Primefaces SplitButton
So added primefaces p:splitButton component inside a p:dataView component:
<p:dataView var="product" value="bean.products">
...
//for each item in dataView, I add this ...
0
votes
1
answer
21
views
Dynamic MenuItem from state materialUI
I am trying to show a different list of menu items according to the gender state, but having some trouble. Here below are the const values.
const maleArray = ["A", "B", "C&...
0
votes
0
answers
18
views
Can Qt menu bar be queried for menu entries?
Can Qt build menu bars with a widget that allows to write the menu entry to select, and the menu bar tries to guess what the user is looking for providing a list of candidate entries?
I am sure this ...
1
vote
1
answer
65
views
ReactJs Menu item relative to select
I am using select menuitem from material UI. I am able to position the dropdown at bottom left with help of the code inside select.
anchorOrigin: {
vertical: "bottom",
horizontal: "left&...
0
votes
0
answers
12
views
How do I add a menu item to the "Drop down menu" of auiToolbar in wxPython?
Toolbar Picture How can I do that? Please show me an code example.
I tried to add menu items through wxFormBuilder, but wxFormBuilder crashes when generating Python code, just after adding items to &...
1
vote
0
answers
38
views
Notify Menu Icon Smaller Size When Ran From Program Files x86
I am trying to figure out why my application's icons display differently when the program is running from the Program Files (x86) directory.
When running the Release version of the code from the ...
0
votes
1
answer
117
views
How to open an activity by selecting an item from navigation drawer's menu? [KOTLIN]
I am new on kotlin and android studio, but as a beginner I finished 40 percent of my first project.
I want to open an activity by selecting an item from navigation drawer menu but trying to use others ...
0
votes
0
answers
54
views
MFC MDI Menu Bar Icon MainFrame vs Loaded Added Menu Icon->How to control/Edit?
When my MDI app opens and loads m_wndMenuBar and waiting for the user to open a file to begin file operations, in the MenuBar it has the menuitems like File, View, ....etc.
When the user loads in a ...
0
votes
1
answer
104
views
show menu item based on system parameter odoo 15
How to show/hide menu item based on system parameter?
I've this code to create menu item, and it working fine, but i need to hide it depends on system parameter.
<!-- this is for test, remove this ...
0
votes
0
answers
13
views
Android submenu item Choosing the position of the icon and the text?
How could I modify that first in a submenu item it shows me the text first and then if it shows me the icon, how could I give the icon a position?
<?xml version="1.0" encoding="utf-8&...
0
votes
0
answers
97
views
How to correctly align 16x16 icons to MenuItems in TPopupMenu?
In a 32-bit VCL Application in Windows 10 in Delphi 11 Alexandria, I use 16x16 pixel icons in a TPopupMenu. Unfortunately, the icons are not correctly aligned vertically to the TMenuItem caption:
...
2
votes
1
answer
156
views
CSS problem with Chrome rendering strange things
Good day! The problem appears with actual Chrome version I already have.
This is the actual Chrome version I have 99.0.4844.51
Suddenly discovered that menus (we uses simple downloaded several years ...
0
votes
0
answers
17
views
How to remove space for icon in MenuItem(wx.Menu) in wxPython?
I want to remove the space for the icon on the left side of the MenuItem(wx.Menu) in wxPython.
How can I do it?
menuBar = wx.MenuBar()
fileMenu = wx.Menu()
exitMenuItem = fileMenu.Append(...
1
vote
0
answers
53
views
Menu item won't change title
Main Code:
class MainActivity : AppCompatActivity() {
private var optionsMenu: Menu? = null
override fun onCreateOptionsMenu(menu: Menu): Boolean {
menuInflater.inflate(R.menu....
3
votes
0
answers
50
views
MFC CMenu strange draw background behavior
I tried to draw the menu background in MFC Dlg App.
But I found if I declare CMenu subMenu in OnInitDialog(), the background color works well.
If I declare CMenu subMenu in Head file or like CMenu*...
0
votes
0
answers
66
views
How to stylish an OverFlow menu in Android?
I need to do a custom menu like this, but I am not found a way to do it. I was able to change the background after some research, but I don't know how to customize each of the items.
Expected result
...
0
votes
0
answers
53
views
Android MenuItem, Change background color on selected item
Here is my menu.xml
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:tools="http://schemas.android.com/tools"
tools:ignore="HardcodedText"
xmlns:...
1
vote
0
answers
17
views
Changing Values in recyclerview when menu item changes in menu list
i am building unit converter app...so when unit from popup change my values in recycler view donnot change suddenly..but values change when i change value in input according to selected unit..i want ...
0
votes
0
answers
34
views
Material UI MenuItem children limitations while using in a dropdown for filters
Is there anyway that i can pass an HTML tag inside a MenuItem Like following
<MenuItem
key={filter.id}
value={filter.id}
>
<Tooltip title= "text to display">
{filter....
0
votes
1
answer
45
views
Howto change the Icon MenuItem android app
I would like to implement a day-night mode switch in a MenuItem. If the day mode is selected, a moon should be displayed, and if the night mode is selected a sun should be diplayed. I save the ...
0
votes
0
answers
38
views
Issue of adding command to MenuItem in WPF c#
I'm trying to make the following
select the employee type ( teacher, manager, student)
then left click on "Add" to show a list with the feasible operations that can be done with this type
...
0
votes
0
answers
38
views
Google sheets addon menu item disappeared - Only Help item left
I have a sheet addon menu that works great on an initial spreadsheet. The add-on was installed and the menu items have permissions already so I do not have to authorize them before use. Here is the ...
0
votes
0
answers
29
views
Android Studio how can i add to Menuitem matginStart
how can i add to Menuitem matginStart
i dont want to move all of the items but some of them like this image:
[what i have and what im tring to do][1]: https://i.stack.imgur.com/4EOMJ.png
im trying to ...
0
votes
1
answer
58
views
Enabling and Disabling CommandGroup Menu Items
I have a very simple sample macOS application with one custom menu command just in order to test my ideas as follows.
import SwiftUI
@main
struct MenuMonsterMacApp: App {
@State var ...
2
votes
1
answer
36
views
CommandGroup with keyboardShortcut (Command + O)
As I understand, I need to use CommandGroup in the App struct to set up menu items in SwiftUI. So I have the following.
import SwiftUI
@main
struct Oh_My_App: App {
var body: some Scene {
...
0
votes
1
answer
51
views
Passing a Value from App to ContentView in SwiftUI
I find a lot of resources out there as to how to let the user select a menu item and then open a folder. The following is what I have.
import SwiftUI
@main
struct Oh_My_App: App {
var body: some ...
0
votes
0
answers
114
views
Hide menu items based on user role
I work with the project management system app Rukovoditel which works with Bootstrap 3 and it has a build in access and role management for users.
In configuration it is possible to hide menu items ...