I have a problem.
I am using rich:tree element for representing menu in my application.
This tree is always present on the page.
What I would like to do is to define global hotkeys like : CTRL+UP, CTRL+DOWN with which user could automatically go from current menu item to another item.
Hope you understand what I mean.
Now, defining hotkeys is no problem.
I use rich:hotKey.
But what to put in their handler?
Anyone got some experience with this problem?
Guide in the right direction, some help, anything would do.
I'm kind of stuck right now.
Thanks!
RichFaces Showcase is not enough?Working with HotKeys is described here and this tutorials leads to ComponentControl which offers a lot of ways how to react on some key event.
Related
Using wxPython, is it possible to nest a combobox inside other combobox in a similar way to how submenus are nested within menus? I need something similar for a wx.Combobox or a wx.Choice.
Or is there any widget with which this can be done?
Well, there are some possibilities:
wx.lib.combotreebox.ComboTreeBox
wx.combo.OwnerDrawnComboBox
# possibly also:
wx.lib.popupctl
You might also use a button (or some control) to invoke a PopupMenu. It may be confusing for the user though, and you might get into trouble when trying to position the Popup menu correctly. Generally speaking, I advice not to be too creative when making UI.
Have you seen wxpython demo? It is a nice showcase of all possible widgets. You can obtain it from here: https://extras.wxpython.org/wxPython4/extras/
What I'm trying to do is to make an "untouchable map". I need to be it kind of a background instead of a real map, and I need to keep it swipeable to left and right fragments. How can I implement that? I've tried to put a layer overlay, but it doesn't work, it's keep focusing on the map when I try to swipe to other fragment. Maybe there is a "switch" for the XML part? Thanks!
map.getUiSettings().setAllGesturesEnabled(false); - this is exactly what I was looking for.
Sorry if my query's a bit noobish, a uwp beginner here.
I'm trying to morph the hamburger template from template10 and an existing project of mine. Basically, I'd like to have a certain page with the hamburger menu being invisible, and display my own navigation buttons on the page (an intro page). Upon navigation away to any other page the menu will be visible again.
I tried changing Hamburger's visibility state as an experiment, but it seems to be affecting the content as well. Is what I'm talking about possible with this control and I'm missing something obvious? Or I'd have to manage shell usage in app.xaml and load my intro page without the shell?
Many thanks for the creation of the t10 btw (Jerry, Daren and everyone else), me being confused in this thing doesn't at all diminish my appreciation
There are a few options for you here. IsPaneOpen will only work for you depending on the DisplayMode you choose. But if I were to guess, it's HamburgerMenu,.IsFullScreen that you are really wanting to use here.
You can change the SplitView mode to Inline and set IsPaneOpen to false. That will hide the Pane.
I cannot find any examples in Rikulo on how to create and use menu bar, menu, sub menu and menu items.
could anyone point me in the right direction please?
regards
No, it is not supported. There are too many styles and variants. Many of them don't require much JS code. Here are some examples. You can port one to your application and wrap it as a Rikulo UI component, if you want.
I assumes you're talking about Rikulo UI. If you're using Bootjack, you can pick one from Bootstrap's 3rd party libraries.
I'm using Primefaces p:inplace such that when some text is clicked, it's replaced with an h:selectOneMenu, and from there the user can open the menu and select an option from the drop-down choices. It would be helpful (and alleviate an extra click) if when I clicked the p:inplace element, the selectOneMenu that appeared was already activated with its drop-down options showing, as if the user had clicked it. I've searched for this on Google to no avail, and was wondering if perhaps it is actually possible to do such a thing, even with JavaScript. (I can also use p:selectOneMenu or a selectOneListbox if need be, but it didn't seem like that would help.)
As you say, you could use a selectOneListBox, especially if you have few options(works just fine inside p:inplace). I've never heard of a request like that and I think it's all about the browser (there may be some restrictions regarding an auto-expand).
But you can do a thing that could please you: remove the default option, like:
<f:selectItem itemLabel="Select..." itemValue=""/>
and do some research to find out the most selected option and put that option as a default/first. So most of the people will not even have to expand the select menu.
I found this similar Stack Overflow question today (don't know how I missed it originally):
Can I open a dropdownlist using jQuery
Looks like our fears are right and there's no way to open the drop-down list itself, but a combination of CSS and modifying the element may give me the results I'm looking for. Thanks!