menubar

GetDlgCtrlID for top-level window with menu bar - return value

百般思念 提交于 2019-12-26 15:53:24
问题 MSDN -> "GetDlgCtrlID function" -> Remarks: "... Although GetDlgCtrlID may return a value if hwndCtl is a handle to a top-level window, top-level windows cannot have identifiers and such a return value is never valid." It seems it is wrong information - "never valid". At least for Win2k...Win8 this return value is just kernel pointer to hmenu(bar). And my question is (primarily to MS insiders): why MSDN so inaccurate here? (Screenshot: http://files.rsdn.ru/42164/gwl(-1)_tagwnd.png) Upd

GetDlgCtrlID for top-level window with menu bar - return value

邮差的信 提交于 2019-12-26 15:53:03
问题 MSDN -> "GetDlgCtrlID function" -> Remarks: "... Although GetDlgCtrlID may return a value if hwndCtl is a handle to a top-level window, top-level windows cannot have identifiers and such a return value is never valid." It seems it is wrong information - "never valid". At least for Win2k...Win8 this return value is just kernel pointer to hmenu(bar). And my question is (primarily to MS insiders): why MSDN so inaccurate here? (Screenshot: http://files.rsdn.ru/42164/gwl(-1)_tagwnd.png) Upd

getSelectedItem() on GWT MenuBar

心已入冬 提交于 2019-12-25 08:21:00
问题 I'm new to GWT so please help me. I'm having a problem in my GWT MenuBar on how to getSelectedItem() . Here's my code: public class Menu extends Composite implements Command { private MenuBar menu = new MenuBar(); private MenuBar priceMgt = new MenuBar( true ); private MenuBar salesReport = new MenuBar( true ); // and a lot more menubars private String[] itemPriceMgt = { "Manage Price List", "Print Product Pricing", "Price Proof List" }; private String[] itemSalesReport = { "Sales Transaction

Cocoa application contains no menu bars, according to AppleScript

假装没事ソ 提交于 2019-12-25 05:46:10
问题 I am creating a mac app that needs to start dictation (OSX 10.8) by itself. Because there is no way to initiate dictation "directly" the best way to do this is through the menu bar "Edit"/"Start Dictation" because a user may have different keyboard shortcuts for it. Here's the simple script my app calls (using an NSAppleScript object): tell application "System Events" tell application process "MyApp" tell menu bar 1 tell menu bar item "Edit" tell menu "Edit" click menu item "Start Dictation"

Missing Menu Bar in Visual Studio 2010

╄→гoц情女王★ 提交于 2019-12-24 20:13:04
问题 When I opened up Visual Studio 2010 this morning, my Menu Bar (you know, the bar with File, Edit, etc. on it) was missing. I've tried all of the right-click menus, customize options, Function keys and Google searches that I can think of but to no avail. 回答1: Sounds like registry damage, HKCU\Software\Microsoft\VisualStudio\10.0_Config perhaps. Try running devenv.exe with the /ResetSettings command line option first. Next is rerunning setup.exe and choosing the Repair option. 来源: https:/

LWUIT Localize MenuBar

巧了我就是萌 提交于 2019-12-24 07:38:07
问题 I'd like to localize the MenuBar of an LWUIT form . I don't want to show the users "Menu" / "Select" / "Cancel". I've successfully localized single commands, which get shown when the Menu opens, via back.setCommandName("bk"); searchCommand.setCommandName("search"); exit.setCommandName("ex"); mainMenu.addCommand(back, 0); mainMenu.addCommand(searchCommand, 1); mainMenu.addCommand(exit, 2); For the MenuBar I tried MenuBar m = NameOfMyForm.getMenuBar(); m.setName("test"); mainMenu.setMenuBar(m);

How can I make my application's touch bar always visible on macOS?

╄→尐↘猪︶ㄣ 提交于 2019-12-23 17:23:41
问题 I am making a macOS menu bar application which displays a fullscreen overlay. The user is able to control the opacity of this overlay via a slider in the menu bar. I wish to move these controls to the touch bar, because the application is used for screen recordings, and distractions on the main screen would be recorded. The slider in my application should act just like the brightness and volume sliders that are on the touch bar by default. I have added my NSTouchBar by subclassing

Open pdf file from menubar using Vaadin

蹲街弑〆低调 提交于 2019-12-23 16:01:45
问题 I have a menubar in my vaadin application and want to add an item to open a pdf-file is a new tab of the browser. I found some solutions to open files with a button, but I have to use an MenuItem... MenuBar.Command commandHandler = new MenuBar.Command() { @Override public void menuSelected(MenuItem selectedItem) { if (selectedItem.equals(menu_help)) { openHelp(); } } }; ... menu_help = menuBar .addItem("", WebImageList.getImage(ImageList.gc_helpIcon), commandHandler); ... private void

Angular2RC4-Primeng Menubar routerlink does not go to my routes after click

梦想的初衷 提交于 2019-12-23 12:43:13
问题 I am using Menubar from primeng for my app. I got the Menu showing, but I wasn't able to make the routing working in my app. I set specific link's route say "reports/89", but when I click the menu corresponding to the link it tries to go to the "localhost:3000/r/e/p/o/r/t/s/8/9" which obviously does not exist. I checked the items object containing my menus and the routerLink is correctly pointing at "reports/89". What is going on here and why primeng puts / among every characters in the link.

Detect click on OS X menu bar?

一曲冷凌霜 提交于 2019-12-23 00:51:31
问题 I'm curious if there's a trick to detecting a click on the Menu Bar as a whole. I know I can detect a click on an NSStatusItem or NSMenu, but I am looking for events pertaining to the empty space of the Menu Bar. Looking through the documentation, it does not seem possible. However, I wanted to know if anyone had a workaround for this functionality? 回答1: You can install a local event monitor using NSEvent addLocalMonitorForEventsMatchingMask:handler: See the documentation located here. 来源: