Is there a way to make the taskbar item flash in an AIR app? like it does in other applications to alert the user of a change.
Thanks!!
You need to call:
stage.nativeWindow.notifyUser(NotificationType.CRITICAL);
Just to put some more info, the notification types that can be used here are:
NotificationType.CRITICAL: the window icon flashes until the
user brings the window to the foreground.
NotificationType.INFORMATIONAL: the window icon highlights by changing color.
There's an article on livedocs about using Taskbar here
Related
I build a web-based Cocoa app that has a WebView stretched to the whole window. The top bar of the app has tabs, controls and some unused area which I would like to use for giving user an ability to drag the window (like many apps do). Chrome apps and Electron have -webkit-app-region: drag CSS property for doing this. What about WKWebView in Cocoa?
Make sure that -[NSWindow isMovableByWindowBackground] is set. Then, assuming nothing on WKWebView consumed mouse events, the drag should work.
I'm trying to create an editor using Xamarin Forms.
The editor is a webview with content editable and a toolbar below.
You can check my current implementation here.
It works well on Android, when i tap on the button, it executes the javascript on the webview,the keyboard remains open and the webview doesn't loose focus.
On iOS the webview looses focus and the keyboard closes.
Like this:
Any idea on how can i solve this ?
What i tried so far:
Attach to the buttons an effect that calls ResignFirstResponder.
On the content editable, call focus when bluring.
I want to display the statistics of my application from the system tray, when the user focuses the application's system tray icon. To achieve this, I used Shell_NotifyIcon(), but it has the limitation of max string size of 64 chars.
So, I created my own tooltip window using "CreateWindow()" (I am using Win32 APIs), and it works fine when I hover the mouse over the icon. But it doesnt work when systray icon is focussed using only keyboard.
When I debugged the app, it appeared that there were no windows-messages captured when icon was focussed using keyboard. But I get WM_MOUSEMOVE messages when I hover the mouse over the icon.
Are there any windows-messages sent out when systray icons are focused using keyboard (i.e Win+B --> use arrow keys to navigate to your icon)?
Any alternate suggestions would be appreciated.
Thanks,
Kunal
A System Tray icon tooltip is limited to 64 characters only on Windows versions prior to Windows 2000. In Windows 2000, the tooltip limit was increased to 128 characters.
And there are messages when the icon is focused/activated via keyboard. You may have to ask the System Tray for them via NIM_SETVERSION.
Read the documentation:
Notifications and the Notification Area
Shell_NotifyIcon(). There is a lot of information about handling keyboard/mouse messages in the Remarks.
Looking for a solution to a hidden window - either a windows event that occurs when the TaskBar Icon is clicked.
or alternatively, a way to remove the TaskBar Icon. The Tray Icon is easily hidden - that is not the problem.
There is a sample script on the AutoHotkey's Website called Minimize Window to Tray
The script itself uses the hotkey Win+H to hide the active window. Win+U then shows the last hidden window. If this is not the functionality you are going for, I'm sure you can take a look at the script and pick out what you need. Hope this helps you out.
I've a possible answer to detecting a Click on the TaskBar Icon - but I'm concerned it will differ for each version of Windows. Using OnMessage(Wm_Activate := 0x06, "testmessage") - then MouseGetPos to get the Window name, I can eliminate all but 'MSTaskListWClass1' the name of the Icon I want. But I suspect that the name is only valid for Win7.
I work with an air application.
When I click on particular menu of my menubar, I'd to look my program.
So my idea is to use flex alert to do that.
But if some windows are load, my alert appear on background and not on front.
Can you explain to me how to solve that or how to know witch window is on front.
Thanks