Include a divider between menu item groups. JavaFX - menu

How to insert a divider between groups of a menu items. For example:
Group 1:
Save,
Save As
Group 2
Open
Import
My hack is adding a disabled menu item in the middle, with a string value of "---------". So my current menu is something like this
"Save"
"Save As"
"--------"
"Open"
"Import"
Is there a more proper, elegant, way to do this?

Use the JavaFX SeparatorMenuItem.

Related

is there a vba code to assign screen clipping to a command butten?

I tried commandbars codes and excutemso but they didnt work and i realized that commandbars are surpersed in newest version of office
How can i use it?
Tnx for your time
CommandBars.ExecuteMso ("ScreenClipping")
In general, to identify a control on the Ribbon:
Hover over the desired button until the name pops up and remember it > rightclick on the ribbon and click "Customise the Ribbon" > in the first column click "All Commands" (NOT All Tabs) > find the remembered name in the alphabetical list and hover over it until info pops up. The actual "Code" name for the button will be the one in brackets.
(I do not know why, but the Button ID Execute method doesn't seem to work on this command)

Keyboard accessibility ( WCAG) in panels with list of elements that has assigned button role

Hi :) I would like to ask you about how to treat elements that compose a list, but whom have assiged a button role and are put in side panel ( so it is not a menu or dropdown). My main problem is how to decide is to where ARROWS should works and where TAB.
Moreover I have a differ types of list items that consist of:
checkbox/ radiobutton only
checkbox/ radiobutton with a link to another panel
two icons/ buttons that has defined an activities etc.
Please look at pictures and help me please :)
PINK - "arrows"
BLUE - "TAB"key
You should hardly decide which component will use TAB key or Arrow Keys. Keyboard accessibility for a large number of components is already defined in WAI-ARIA Authoring Practices.
Adding a different behavior could create issues to both sighted, and non-sighted users because they'll already be knowing which key to use based on the component or they'll know intuitively because of standard roles or they'll know as they use keyboard more to browse.
Offer List
Listbox will work. Arrow Keys to navigate and Enter key to perform the action.
List of Checkboxes and Radio Buttons
I would recommend to keep Checkboxes and Radio Buttons to their default keyboard behavior. Since your cases are more of a list, you can convert the list of checkboxes and radio buttons to Single Select and Multi Select Listboxes and use Checkbox and Radio Button as a font icon or graphic to show the selection, similar to how tick is shown in this Listbox example. When you convert to a Listbox, you'll meet the Arrow Keys requirement.
Selected Fruits List
There are some issues in the required keyboard behavior: How will user know if Arrow-Left or Arrow-Right need to be presed, think about non-sighted users.
Fruit Name and i icon button
In your need, you want both Fruit Name and i icon button to open a panel, suggest to NOT use Arrow-Right to i icon button and only use the Enter key to open the panel. May be you don't need i icon button at all.
Delete icon button
Suggest to use DEL key to delete the item
Conclusion
Remove i icon button. If you can't just keep it as graphic element without any events
Use Enter key to open the panel
Use DEL key to delete the item
I think the whole list will then become a listbox, navigable using Arrow Keys and Enter to invoke an operation
Vegetables List
Neither Accordion nor Nested List works here because you have two actions to do: Make a selection, and Expand and Collapse. I haven't tried TreeView but you can check.

How to publish different menutype joomla on module position?

I am trying to remind how to use Joomla 3. Please let me know about how to publish different menu on top module position? I have checked up menutype and extensions->modules. Thanks..
Regards,
Maksym
I assume that you have created a menu and you want to publish it on the top module position. For that you need to goto extensions->modules and then click on new tab there you will find menu so click on that
and select which menu you want from dropdown list as given in image here
Then select on which pages you want that menu from the menu Assignment page.
next if its a horizontal top menu then under Advanced tab you will find an option
Menu Class Suffix add " nav-pills". You will get a bootstrap horizontal menu.

Get label of selected AutoHotKey GUI menu item

I want to create small menu for special characters, directly inserting selected character into text.
For example, this small popup menu opens on F9 as a context menu:
Menu, Ctx1, Add, €, InsertMenuLabel
Menu, Ctx1, Add, ¥, InsertMenuLabel
Menu, Ctx1, Add, ¢, InsertMenuLabel
Menu, Ctx1, Add, £, InsertMenuLabel
F9:
Menu, Ctx1, Show, %A_GuiX%, %A_GuiY%
Return
How do simply retrieve label of menu item which was selected? In the following code, how can I carry menu item label into %MenuItemLabel%?)
InsertMenuLabel:
Send %MenuItemLabel%
Return
I know this can be done using individual branch for each menu item (InsertChar1 ... InsertChar4) but it is not elegant.
I think I found it:
InsertMenuLabel:
Send %A_ThisMenuItem%
Return

Excel editing command button name not changing

When I am editing command button and I go to the top left corner to change the name of the command button it allows me to edit the text and change it but when I press enter or click somewhere the name of the button keeps reverting back to the original name.
I've tried also tried making sure design mode is selected as well, and the command button and the sheet do not have any protection on either
I'm sure I'm missing something simple.
I had a very similar problem. Solved! My problem was that I would create an ACTIVEX button, and using the properties, give it a customized name (changing CommandButton1 to something much more descriptive)... then later, upon saving and re-opening the excel, some of these buttons (not all) would revert to CommandButtonX.
The whole problem was THE LENGTH OF THE NAME. My names that failed would be around 39 chars or more (somewhere around 39). Using the selection objects pane under the Excel "Find and Select" menu item, I observed the ones that would fail vs succeed.... comparing what I would change in that pane with control properties (Name) and the excel "sheet Name Box" in the upper left area of the sheet screen.
When we have to rename the command button, you can use properties and namebox. But the purpose to change the appearance of button, you have to go to
properties->caption. In caption, you can rename button's appearance.

Resources