AIR modal screen - air

I am developing an AIR application where I need to display a Modal Window.
The screen should fill the entire desktop including the Task Bar.
If the user wants to exit the screen, he should press Windows+D option or activate Task Manager.
Can any one post some sample code?

To get rid of taskbar, switch to fullscreen mode with
stage.displayState = StageDisplayState.FULL_SCREEN;
User always can switch to another window with Alt-Tab (on Windows), AIR cannot "lock" screen to prevent that.

Try the example here
http://flex4fun.com/2010/12/01/flex4-popupmanager-example-change-modal-color-and-click-modal-close-popup/
PopUpManager.createPopUp(this, TitleWindow, true)
last argument makes the popup "modal".
http://docs.huihoo.com/flex/4/mx/managers/PopUpManager.html#createPopUp()

Related

How to restart application after sometime when we minimize it from home button and open it again

I have created Mobile application in React native.
My problem is that whenever i open my app from launcher icon and minimize for sometime (eg: 10 minutes) then if i re-open my application from recent apps or else on clicking launcher icon again it should restart the application as it opening for the first time.
But doesn't matter how much time i minimize the application when i open it again it will open as a previous state.
How to solve this issue.
What Navigation module are you using? Depending on it, you need to call a method to init the app and that method must be called again when you switch back to the app.
Normally, application has their inherent state as snapshot when it go to background if the user do not close directly.
If you are testing on android, pressing backbutton on top of the navigation makes close the application. (you can control this if you want.)
In iOS, pressing home button always send the application into background instead of close.
I am not sure what OS you are using for development. But refer it.

Add button to OSX lock screen

Is it possible to alter the existing OSX lock screen ? For example if I wanted to add a button above the users profile image that says "Hello World" on click.. is this possible?
The goal is to run an AppleScript when the button is clicked.
EDIT -
/System/Library/PrivateFrameworks/LoginUIKit.framework
Inside here you have the ability to change the login screen images and such, but also it contains several compiled nib files abbreviated with 'LUI' which I am assuming stands for 'Locked User Interface'. I'm about to set up parallels and try to open them in Snow Leopard with xcode 3.2.6, and see if I can edit the nibs. If I'm able to accomplish this, would editing such files be in violation of their TOS?
Another possibility was running a window above it. On screen lock I can get the window above the screensaver simply by saying
[window setLevel:NSScreenSaverLevel]
but still, that doesn't overlay the login screen.
I feel like this shouldn't even be possible, but I seen something similar on the Knock to Unlock app.
Did you try to use the following line?
[window setLevel:CGShieldingWindowLevel()+1];
I'm using it to do the same as KnockToUnlock and it works like a charm. I see my window above the login screen either if I come on the login screen from the sleep mode or the screensaver.
Hope this helps.

Detect Settings Charm is Opened or Not in Windows Store Apps?

I just want to know is that Any other way to get the Settings Charm is active or not.
Because, In my app, the Settings of an app is in the settings charm(If user presses Settings btn in App will leads to open Settings Charm)
In my case, Instead of using the settings btn. user may use short cut (WIN + C) (or) Moving the Mouse to the Right corner of the Screen. to enter into the settings pane means how could i know that?
Is that any way to find that????
Tap in to CommandsRequested on the SettingsPane
Occurs when the user opens the settings pane. Listening for this event lets the app
initialize the setting commands and pause its UI until the user closes the pane.
Now detecting that it's closed again would amount to checking that your window is again activated - see this thread.

KDE and Multi-Monitor, how to have program started on the screen it was opened from

I have been trying KDE and customized it enough to my liking. I added panels and application launchers on each screen and windows opened shows on each screen panel.
But whenever I start an application either from the "start menu" or from the quick launch, it position on any screen.
Is there a way to have application started on the screen it was opened?
After spending too much time in settings, google, and Window Rules, I finally found my answer.
In System Settings -> Window Behavior -> Window Behavior -> Focus Tab
enable the box "Active screen follows mouse"

Change Icon on Task Bar for VB.net

I have a program in vb.net which is ready to be published.
Its a small detail, but I'd like to change the icon on both the published app shortcut on my desktop, but more importantly on my taskbar (like where the chrome circle shows up).
Is there any way to accomplish this?
To change the main icon for your application, go to the "Application" tab under the project property page, and change the "Icon:" combo box.