menubar

JSF PrimeFaces MenuBar dropdown submenu disapearing after hover in p:layout

旧城冷巷雨未停 提交于 2019-12-06 03:24:52
Doing some application in JSF PrimeFaces 3.1.1 (still learning) and I implemented full page layout - Sunny (the <p:layout /> tag). Everytihng is fine, except my menu bar. On hover on the submenu button in the menu, the dropdown submenu shows, but when I want to go by mouse to the submenu, it disappears. The only option is to change the mouse position to the submenu very fast - than it stays. And thats the problem, need it to work normally, not dissappearing. If I put the layouts out, the menubar works well again. Also tried to copy & paste code from PF showcase, issue was the same. Using JSF 2

How to change Xamarin back button in menu bar?

♀尐吖头ヾ 提交于 2019-12-06 02:09:40
this is what I have: this is what I want to get: If there is no pages in navigation stack, then title icon will be in left corner, else there will be back arrow and "Back" text. I didn't find any options to customize it, is it possible at all? Daniel Luberda You can change arrow to hamburger icon if you use your MasterPage within NavigationPage: Detail = new NavigationPage(masterPage); If you want to hide icon - it only applies to Android. It can be solved with custom renderer ( http://developer.xamarin.com/guides/cross-platform/xamarin-forms/custom-renderer/ ): [assembly:ExportRenderer

[Mac]How to reproduce drag and drop from cloudapp in the system bar menu?

一曲冷凌霜 提交于 2019-12-05 19:42:40
I'm trying to reproduce the drag and drop into the system bar menu of cloudapp for mac. I've done some search but doesn't find anything that could help me. To create the menu I followed this tutorial http://cocoatutorial.grapewave.com/2010/01/creating-a-status-bar-application/ but now I'm stuck on the drag and drop. Does anyone now how to do that ? Rob Keniger You need to use a custom view in your NSStatusItem and implement drag and drop in that view. I posted example code in my answer to this question . 来源: https://stackoverflow.com/questions/9748459/machow-to-reproduce-drag-and-drop-from

Why do my image background disappear on float: left?

允我心安 提交于 2019-12-05 08:04:14
I want to create a navbar with images on each end to make it purty. So, I created the HTML and CSS below and it worked great. My menu items are in a ul/li list. When I style the list to put the items all on one line, the images on the ends disappear. What's up with that? How do I fix it? The culprit is float: left; below. --- test.html --- <html> <head> <link rel="stylesheet" href="test.css" type="text/css"> </head> <body> <div id="container"> <div id="header-usernav" class="span-6 last large"> <div id="header-usernav-leftside"><div id="header-usernav-rightside"> <ul> <li>Register</li> <li

Mac OS X, make a window go over menu bar

雨燕双飞 提交于 2019-12-05 04:44:32
Is it possible to make a window to go over the menu bar, without going in fullscreen? Thanks in Advance! Yes, trivially: window.level = NSMainMenuWindowLevel + 1; (Reference: Drawing to the Full Screen , OpenGL Programming Guide for Mac OS X .) sebastianmarkow is correct in that this is terrible behaviour for a normal document window, but there are several window types for which this is normal: cursors, tool tips, and special utilities like Xscope. I liked Jens Ayton's answer, but rather than pick an arbitrary number like that, I think it would be preferred that you use one of the defined

Cocoa application menu bar not clickable

故事扮演 提交于 2019-12-05 02:41:05
问题 I'm building a menu bar in my cocoa application with the following code in the @implementation of my custom application CustomApplication : +(void) setUpMenuBar { [CustomApplication sharedApplication]; // Main menu NSMenu* mainMenu = [NSApp mainMenu]; if (mainMenu != nil) return; // We set it already mainMenu = [[[NSMenu alloc] initWithTitle:@""] autorelease]; [NSApp setMainMenu:mainMenu]; // Application menu NSMenuItem* appleItem = [mainMenu addItemWithTitle:@"" action:nil keyEquivalent:@""]

How do i get the active ribbon tab name?

妖精的绣舞 提交于 2019-12-04 21:03:18
I have been searching the net for 2 days but found nearly nothing about this issue: How do I work with the Ribbon (Menu) in Excel ? How do I get the active ribbon tab name? How do I select the Home or Data tab? The tab-scaling feature was introduced with Office 2010. So, you need to use Accessibility API to get the required information (do whatever you need). 来源: https://stackoverflow.com/questions/31002606/how-do-i-get-the-active-ribbon-tab-name

take device snapshot programmatically in android

我与影子孤独终老i 提交于 2019-12-04 20:27:26
How can I take snapshot of device like this tablet has button in menu bar to take a snap shot of device screen? the device has android 4.1.1 this same functionality is wanted to implement in my application to capture the screen snapshot. note that: I don't want to use Layout.getDrawingCache(); I only want to access this method as the OS uses.or a solution like this I do not need to root device.so please do not provide root solutions just have a look on this https://code.google.com/p/android-screenshot-library/ i hope it usefull for you... 来源: https://stackoverflow.com/questions/19493688/take

Dynamic menus with Caliburn micro

余生长醉 提交于 2019-12-04 13:49:14
I use Caliburn micro for my WPF Project. Static menus are easy to bind with Caliburn <Menu Grid.Row="0" IsMainMenu="True"> <MenuItem Header="_File"> <MenuItem x:Name="OpenScript" Header="_Open script"/> </MenuItem> <MenuItem Header="_Script"> <MenuItem x:Name="RunScript" Header="_Run script" /> <MenuItem x:Name="StopScript" Header="_Stop script" /> </MenuItem> <MenuItem Header="S_ettings"> <MenuItem x:Name="Plugins" Header="_Plugins">...Clickable children here</MenuItem> </MenuItem> </Menu> The names are bound to methods on the model, but for the Plugins menu that you see above we need to bind

Python Tkinter menu bars don't display

走远了吗. 提交于 2019-12-04 09:46:38
I'm trying to make a GUI using Tkinter and have come to implementing a menu bar. I've looked at a few tutorials and written some code for it, but a menu bar never seems to appear - just a blank frame with a white background. This doesn't just happen for my code though; on copying and pasting the code of one of the aforementioned tutorials into a new script, the same behaviour is exhibited. I'd appreciate it if anyone could shed any light on what's causing this. My system is OS X 10.5, Python 2.7, Tk 8.4. Here's the code from the tutorial that doesn't appear to work: #!/usr/local/bin/python2.7