While developing an AIR application, I had an issue with bringing the application to front (above all other windows) when clicking the systemTrayIcon.
Usually, you would use the method:
1.
systemTrayIcon.addEventListener(
"click"
,
function
() {
2.
window.nativeWindow.orderToFront();
3.
});
But doing so will result in… actually nothing at all. The window doesn’t move.
Using the same code on a menu item of the SystemTrayIcon will work, but not on the click action of the Icon itself.
Workaround:
Set the window property alwaysInFront to true and then to false:
1.
systemTrayIcon.addEventListener(
"click"
,
function
() {
2.
window.nativeWindow.alwaysInFront =
true
;
3.
window.nativeWindow.alwaysInFront =
false
;
4.
});
Not the way it should be, but it works…
相关推荐
---------------------------------- Window Ruler for Windows Platforms ...- Show the options by right-clicking over the notify icon or the ruler window - The ruler can be resized using the mouse
The Adobe Reader previous view arrow can be used to restore a previous view after clicking a link. Readers are also encouraged to use the text search features of Adobe Reader to find information in ...
You can use -hide as a parameter to hide the tray icon. Visit the website at http://altdrag.googlecode.com/ Send feedback to recover89@gmail.com If you feel this program is useful, please consider ...
This allows a process to access any portion of the physical memory by mapping it into the applications window. When used in combination with Intel’s Physical Addressing Extensions (PAE) on Windows ...
Download full.exe, an about 14 megabyte executable, to C:\full.exe by right-clicking on the link. Use Save Link As... or Save Target As... Be sure the browser saves the file as C:\full.exe. Run the ...
(A)用UltraEdit编辑器打开v1.5的RadminM.txt(用其它编辑器也可参照完成类似修改); (B)Ctrl+R调出替换对话框,在上面需要替换栏输入:^p ,在下面替换为栏输入:,!^p ,(这里,^p代表回车换行),设置好后再单击...
This tutorial will show you how to access the information you need in your browser by simply highlighting your text in the edit window and clicking your toolbar button How to install UE3 UE3 is the ...
2. Clicking the Start button in A will cause the other three assistant windows to be created and show up. At the same time the Start button’s caption will be changed to Stop, the Pause button will be...
All window types now have a specific icon color, so that you can quickly identify the type in the Window List, in the SDI tab control, in the window titles, and so on. The transaction status is now ...
o In the 'Copy Selected Files To...' window, you can now specify a subfolder in the attach filename format. For example, if the filename format is %folder_name%\%subject%_%attach_name%.%extension% ...
All window types now have a specific icon color, so that you can quickly identify the type in the Window List, in the SDI tab control, in the window titles, and so on. The transaction status is now ...
All window types now have a specific icon color, so that you can quickly identify the type in the Window List, in the SDI tab control, in the window titles, and so on. The transaction status is now ...
in the system tray, which contains a context menu to start eric5 and all it's utilities. Double clicking this icon starts the eric5 IDE. Autocompletion/Calltips eric5 provides an interface to ...
All window types now have a specific icon color, so that you can quickly identify the type in the Window List, in the SDI tab control, in the window titles, and so on. The transaction status is now ...
All window types now have a specific icon color, so that you can quickly identify the type in the Window List, in the SDI tab control, in the window titles, and so on. The transaction status is now ...
on a curve by the distance from the original point on the perimeter. - ADD: Added the method TCustomProp.GetPublishedComplexProp - returns included complex flex-property by name registered through ...
(A)用UltraEdit编辑器打开v1.5的RadminM.txt(用其它编辑器也可参照完成类似修改); (B)Ctrl+R调出替换对话框,在上面需要替换栏输入:^p ,在下面替换为栏输入:,!^p ,(这里,^p代表回车换行),设置好后再单击...
All window types now have a specific icon color, so that you can quickly identify the type in the Window List, in the SDI tab control, in the window titles, and so on. The transaction status is now ...
If you would like to move the Raize pages to the front of the palette, there is an a easier way to do this than by manually dragging them. Located in the RC6\Bin directory is a program called ...
it appears as an icon in the system tray and can be turned on and off simply by clicking on it. Windows enabler may be freely distributed as long as the entire package (or a superset) is distributed ...