2,544 questions
Tooling
1
vote
2
replies
44
views
tcl tk: add command with multiline label
I created a menubar with several menubuttons in tcl/tk. Then I wanted to add several commands. The text ist normally short enough for one line, but there is one text which is longer. Is there any way, ...
0
votes
0
answers
31
views
.net maui Flyout menu
I can´t seem to redirect with the Clicked property to another app using shell content...
<Shell.ItemTemplate>
<DataTemplate>
<HorizontalStackLayout Spacing="55" ...
0
votes
0
answers
28
views
How to call Share menu item from Apple Script?
I need to call a Share menu item from Apple Script. For example I'd like to share a website to the Notes app.
But I cannot find out which process to activate. I'm able to display the Share menu, but ...
0
votes
1
answer
66
views
Antd React menu item hide for empty label when collapsed
In Antd 5.22.x with React 19, it seems impossible to hide the label popup when clicking a menu item while the menu is collapsed (see screenshot):
It seems that in the collapsed mode the label gets ...
0
votes
0
answers
42
views
Hide a menu item if user has posted a specific post_type
I'm trying to create a code snippet that will allow me to hide a menu item if a user has already posted at least 1 of a specific post type. I have this:
function hide_specific_menu_item($items, $args) ...
1
vote
1
answer
127
views
How to Display Arrows for MenuItem?
I am working on/learning WPF to use with PowerShell. I needed a customized MenuItem, and I managed to come up with the code below. The code works well and retains all the functions of a traditional ...
1
vote
1
answer
70
views
MenuItem with Caliburn.Micro cannot pass the Item to the method
I have a following Xaml:
<DataGrid
ItemsSource="{Binding Items}"
SelectedItem="{Binding SelectedItem}"
SelectionMode="Single">
<DataGrid....
1
vote
1
answer
60
views
How to set a remote image to a menu item using a coil3.x
I want to use a remote image as an icon in bottomnavigation.
coil version is 3.0.4
To set an image to a menu item, it must be a drawable class, but when coil was updated to version 3, it changed to ...
0
votes
0
answers
46
views
Wpf MenuItem's parent is null in mvvm mode
I want to get the parent of menuitem in mvvm mode, so that I can add the input binding on the parent control.Here is my code.
ViewModel
namespace MenuItemMinimumDemo
{
public class MainViewModel : ...
-1
votes
1
answer
156
views
VB.Net Context Menu items click not firing in the web browser
I'm working on the context menu items to get the messagebox to display when I click on the context menu items. The click event for the context menu items will not be firing when I create custom right ...
1
vote
1
answer
146
views
Problem using transparent PNGs for menu items in MFC
I was directed to an existing answer here:
https://stackoverflow.com/a/60222653/2287576
But I am struggling to follow that code. This is what I have:
CPngImage png;
png.Load(IDB_PNG_MENU_REPORT, ...
0
votes
0
answers
66
views
Menu Issue in NobleUI Theme
I need your help again because I can't find the error.
I purchased the NobleUI theme because I wanted to get things done quickly. Now I have the problem that when I click on a menu link, a different ...
0
votes
1
answer
68
views
Dropdown navigation doesn't work on mobile devices (JavaScript, HTML, CSS)
I built a navigation using JS and SCSS. On desktop it works totally fine, also some mobile devices like Galaxy S10 show the dropdown menu. But most other mobile devices do nothing when I click the nav ...
0
votes
1
answer
77
views
Direct input elements in shinydashboard sidebar
I was wondering if I could modify the following shiny app and put the sliderInput into the sidebar section :
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(title = &...
-1
votes
1
answer
81
views
Cannot cast from System::Object to System::Windows::Forms::MenuItem in C++/CLI
I'm working on my C++/CLI project as I'm adding the sub menu items with click event. I'm having a problem with getting the text of the menu item, because when I try this:
Debug::WriteLine("...
0
votes
3
answers
245
views
Implementing Export/Import menu commands?
I have an import (and export) button(s) that works fine placed in a view.
var body: some View {
Button(action: {
isImporting = true
}, label: {
Label("Import", ...
0
votes
1
answer
288
views
Windows 11 - How to modify the title of a group of items in the Windows Explorer context menu?
In one of my application, I added a new item in the Windows Explorer context menu of Windows 11. This worked well, but now I want to add a group of items. I could achieve that by updating the ...
0
votes
1
answer
66
views
Menuitem item style
I have a context menu with the following items
<ContextMenu x:Name="NotificoContextMenu" x:Shared="false" x:Key="SysTrayMenu" x:FieldModifier="public" ...
1
vote
0
answers
24
views
Menu item of NavigationView doesn't get checked if it was the last item checked
I have a menu with a few items, which are displayed or hidden depending on if the user is logged in.
If the user has logged in, I show an item option to sign out. When this happens, I launch the home ...
2
votes
1
answer
68
views
MenuItem SubMenu appearing on left hand side of ContextMenu instead of default
This question relates to the post here - the original question was resolved, but then another cropped up.
As you can see the MenuItem is appearing the wrong side
As the prior issue was related to ...
0
votes
0
answers
678
views
MudBlazor Nested Menu Hover on nested child opens and closes that child dialog rapidly and isn't clickable
I am writing a nested menu component in Blazor with MudBlazor nested menu components, like described in in the documentation here: https://www.mudblazor.com/components/menu#nested-menu
However, no ...
0
votes
1
answer
57
views
Detecting menu item text (and ID)
Code:
auto pMenuEdit = GetCongregationSubMenu(1);
if (pMenuEdit != nullptr)
{
const int iSize = pMenuEdit->GetMenuItemCount();
for (int i = 0; i < iSize; i++)
{
CString ...
0
votes
2
answers
603
views
How to get select multiple menu items in MUI menu and return the selected value
I have a created checkbox to each of MenuItem in a MUI Menu. And a user can select more than one menu item at a time.
Is there a way to get the selected menu item values ?
Because if I put event....
0
votes
0
answers
92
views
Can you tie a SwiftUI Mac app's menu item to the front window like you can in AppKit
In AppKit, you can set up a menu item so that it invokes a selector in the first responder. If memory serves, you do that by setting its target to nil, and then the system walks the responder chain, ...
1
vote
0
answers
140
views
How to show a modal from inside a MUI Menuitem
I am trying to keep all the modal opening & closing logic inside the Menuitem component, as otherwise I have to write that login separately in multiple files wherever I am using this menuItem, &...
0
votes
1
answer
132
views
Remove extra menu when search view is click
In my project, I try to remove the extra menu when the search view is clicked and return the menus when canceling the search view. Please find the screenshot below
I use this below code to hide and ...
0
votes
0
answers
63
views
Flutter: Drawer items reopen after being in an open window already
The problem is that I am utilizing Flutter to design an application, and I have made a custom drawer and app bar. If an item in a drawer is clicked, it should open; but, if you click on item 1 again, ...
0
votes
1
answer
614
views
How To Add Woocommerce Product Categories To Menu Dynamically?
Is it possible to add a Woocommerce product category to the menu dynamically?
How can I do this? I am trying to add woocommerce product category to the menu dynamically. I am expecting a good solution ...
0
votes
1
answer
73
views
images cannot be displayed in the bare menu but not in the rest of the grid
I have the following wpf grid block. I have an image named truc.PNG, a small file image measuring 16x16 pixels. I can see it in the image block, but not as an icon in one of the menu bar items.I've ...
1
vote
0
answers
62
views
Java/JavaFX AWT (MenuItem) to JavaFX (event)
I have one suspended state of my application that I can't get around in any way.
I was able to successfully create an application that has absolutely all the functionality. I decided to practice a ...
0
votes
1
answer
53
views
Can anyone help? Starting new activity using onOptionsItemSelected with Kotlin
After looking through docs and threads I can't find a solution for my case an am wondering if I could get some help / slight nudge with this. I'm not fully understanding this function and am teaching ...
-1
votes
2
answers
89
views
How to make a transition effect for a dropdown menù
I have a problem using CSS (tried JS and it's the same, it doesn't work) for a dropdown menu.
When i click on my button to open the submenu it appears instantly, how can i make the transition smooth?
...
1
vote
0
answers
107
views
VSIX: Command menu item visibility depend on option value
I have just completed a basic VSIX package which provides only one command. The command takes the selection from a C# file and does some refactoring, the details of which are uninteresting for this ...
0
votes
1
answer
90
views
AppNavItem in Vaadin is not marked as active after ui.navigate
I am using latest version of Vaadin (v24).
AppNavItem is not marked as active after ui.navigate(SomeView1.class). SomeView1 is connected to the AppNavItem.
In my AppLayout class I have:
nav = new ...
0
votes
0
answers
30
views
Adding a timestamp when menu item is clicked
I am creating a clocking in button for our organisation in google sheets.
When the menu item 'Clock in' (function: "Clockin") is selected, it adds in a new row, and I want it to add in the ...
0
votes
0
answers
114
views
How to set width in MenuItem material-ui
I'm just starting my adventure with react. I tried to use select with material-ui, but now I run into a wall. My select has a certain width and when MenuItem has a short content then the dropdown ...
1
vote
0
answers
29
views
How to know when are menu items in activity created?
I have an activity with a Toolbar showing an settings menu.
When I access the menu items via
val icon0 = ResourcesCompat.getDrawable(resources, id0, null)
(findViewById<View&...
2
votes
1
answer
671
views
is it correct to use menuitem role as link
I'm trying to write an accessible application, and I have a menu(dropdown), and each item on that menu/dropdown should be a link, is it correct to use menuitem role as link?
see this example:
<div ...
1
vote
0
answers
43
views
WPF - Change background color of MenuItem when the page it links to is active (not when MouseOver)
I'd like to change the background color of a MenuItem in WPF if the page it links to is the page I'm currently on. I've already figured out how to change a MenuItem upon MouseOver, and figured it ...
0
votes
1
answer
39
views
How to show the "Revert to Saved" menu item in non-document apps
When creating a new project in Xcode, the default menu bar in the storyboard has a "Revert to Saved" menu item in the "File" menu. However at runtime, in a non-NSDocument app, the ...
5
votes
0
answers
2k
views
How I can implement custom search bar with menu icon in jetpack compose
I implement this successfully
After that I want to implement custom search bar with menu icon like this on TopAppBar and no suggest strings needed, but this custom search bar not created by me
...
0
votes
1
answer
66
views
Remove Context Menu Items of Eclipse-Plugins
One of my eclipse plugins adds this context menu item:
<menuContribution locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu id="sourceMenuId" label=&...
0
votes
1
answer
92
views
C# WPF Menuitem ItemsPresenter Template
I have a context menu with that contains several menu items. One particular menu item ("In postfach kopieren") used to have many menu items as its children. The problem is that sometimes the ...
0
votes
0
answers
356
views
How to insert (instead redefine) context menu item in MAUI.NET control
I did a context menu for the control as described in tutorial: https://learn.microsoft.com/en-us/dotnet/maui/user-interface/context-menu
It works perfect.
<Entry ...>
<FlyoutBase....
-1
votes
2
answers
378
views
no changes in menu items after updating this code trying to remove the some of them
enter image description here highlighted are the submenu item i want to hide in a custom module.
here are some changes that i have done on backend side but it does not effect the UI side
adding menu ...
0
votes
2
answers
667
views
MUI MenuItem NextJS Link : Error while using those components
I got an issue trying to use MUI MenuItem and NEXTJS13 Link.
Versions:
MUi: "@mui/material": "^5.13.5",
NEXTJS: "next": "13.4.5",
import MenuItem from "@...
0
votes
1
answer
416
views
How can I override a menu item in odoo 16
<record model="ir.ui.menu" id="hr_payroll.menu_hr_payroll_payslips ">
<field name="name">Payroll</field>
</record>
I use this code that I saw ...
0
votes
0
answers
25
views
When i select first bottomnavigation menu item it select second menuitem
After Anything order I move to My Order bottom navigation menu then I select Home it selects My Order again not open home screen
BottomNavigation Image
<com.google.android.material....
1
vote
0
answers
103
views
WPF MVVM Context Menu Copy/Paste does not work at first time
I am trying to copy all row values of a datagrid, using "Copy" in "Menu Item"
However, I am getting a weird situation. I have made a context menu in wpf and using mvvm and making ...
4
votes
1
answer
210
views
SwiftUI how to alternate a menu item based on modifiers
In SwiftUI how to to alternate between 2 menu items, when holding down the Options key
like when you open a Finder File menu and press down the Options key, some items alternate
sadly my approach ...