Using visual studio's spy++ tool: - spy++

I am trying to make a program that will click the button of another program. I have been informed that I need to use spy++ in order to get the ID of the button that I want to click, so I am using it right now. I have found the window which contains the button I wish to get the button ID from (there are 3 buttons in the window).
Where in spy++ can I find the specific buttons ID? I looked in the "window properties" of the window that contains the buttons and didn't find it. There are 3 buttons there so I am guessing I will find 3 button ID's somewhere but I haven't yet.

After you use Spy -> Find Window, select button you are interested in with Finder Tool:, make sure that Show Properties is selected, then press OK. On General tab you will see Control ID which is the value you are looking for.
Another way is to select Spy -> Windows and find you button in window hierarchy, then right select it and press properties, which will show you the same general tab as above.
Third alternative is to select parent (ie. dialog window) for your button (ie. it will be of Dialog class), and register for WM_COMMAND messages from it. Then after pressing it you button ID will be displayed as wID: XX in message window.
I have tested it on Calculator under win7 and win8, funny but spy++ from VS2005 didnt work for me on win7, while spy++ from VS2008 did work on win8. Also there is a 64 bit version of spy++.

You have to look in the properties of the button, not in the properties of the parent window (at low level buttons are in fact some special kind of windows).

Related

Why is Sublime Text context menu disabled (image below)

I have installed HTML-CSS-JS Prettify package in Sublime Text 3 (on Ubuntu 18.4).
The image below shows that it appears on the context menu. However, when I select its context menu (the second context menu) has all options greyed out. I can't find a explanation anywhere and would appreciate knowing how to enable it.
If it is any use the "Anaconda" selection is also all greyed out when I select it. Nodejs is not.
Many thanks.
Menu items appear disabled for a couple of different reasons.
The first (and most common) is that when a menu is about to be displayed, Sublime asks every command bound to an item available in the menu if it should be enabled right now or not, and the command can decide to disable itself if it currently doesn't apply.
The second reason is that the command bound to the menu item is currently missing. For people using packages and not creating them themselves, that generally means that there's something wrong with the plugin that provides the command, such as it not loading for some reason.
In this case, based on the items in there it seems more likely that the second case is what's getting you here.
In order to check that, use View > Show Console or the associated key binding and see if there are any messages that look like a package didn't load for some reason. If so, resolving whatever issue that is should get things working.

Select a part of the property in chrome inspactor css panel

In one of my PCs when I use inspect tool in chrome, I can't select some part of a property or a value, so I have to retype all the value again. As many times as I click on the selected text, the caret doesn't go to the place I need and the selected text doesn't deselect.
the following picture shows what I want and what happens.
There is no problem in another PC.
Both are windows 10 64bit and google chrome 62.
Try holding shift or control while clicking. Haven't tried it, but it may work. My guess is that it's simply a UX workflow that DevTools doesn't handle well.

PhpStorm 2017.1 - How Do I Get the Project Search Results to Appear As the Bottom Panel By Default?

I just upgraded to PhpStorm 2017.1 and noticed that when I do a directory search using the project explorer on the left hand side of the screen, the results now appear as a pop-up modal.
There is an option to get the results to appear as the bottom panel (like in previous versions) on the modal, but I would like it to do that by default.
How do I get the old behavior back?
To have Enter work as Ctrl+Enter, please vote for IDEA-169996.
Note that you can switch to the old dialog by deselecting ide.find.as.popup in Registry: Help | Find action, type Registry to locate it, find the option there and deselect the checkbox

Open a Vaadin `TabSheet` tab into a separate window

I want to give my users the option of opening a tab into its own window rather than merely switching the current window’s display to that tab. I have lots of tabs in my app, and the user often wants to study a few of those over long periods of time. For example, the user may watch charts being updated over time via Push.
Currently I add an "Open Window" button to a tab's layout. This opens a new browser window with the current tab’s layout.
Is there any other way to do this? A context-menu on the tab itself? User holding down a keyboard modifier (Control key, Command key, Option/Alt key) while clicking the tab?
Actually, there is one trick:
tabSheet.setCloseHandler((tabsheet, tabContent) -> {/** make new window **/});
Of course it works if tabSheet is closeable.
So if anybody click close button then you could do your own logic - in this example open new window.
But it could be misleading. To handle this problem you could replace close caption from x to any other more meaningful sign.
For example, look at Valo TabSheet demo. If you look in HTML code, than you notice something like this:
<span class="v-tabsheet-caption-close" aria-hidden="true" aria-disabled="true">×</span>
I think you are able to change this x using for example JavaScript.

Flex 4 (Air) - ShowDialog-like behavior

The ShowDialog function in VB.NET allows a child window (form) to be opened in front of another without letting the user interact with the parent window until the child is closed.
To see what I'm referring to (in Windows), open up notepad, click help > about, and then click back on the main window. You'll notice that the dialog flashes and makes a noise. That happens with dialogs in a great many applications, and that is what I'm trying to achieve.
I can't seem to find any way to replicate this in Flex 4 (Air) applications. Any suggestions?
EDIT 2
Based on your comment, you then have to create a new window component(mxml component with the functionality and interface you want defined in it) and can then attach it to the click event of the link/button on the main window. And for the focus issue you can use setFocus from IFocusManager component