My application can go into fullscreen mode.
But it always 'opens' behind Windows Media Center, and I need my air app to display above the media center.
I found this article: http://msdn.microsoft.com/en-us/library/windows/desktop/bb189148.aspx
At the overlaying part it says "It is not possible to overlay anything other than a dialog box or a prompt over the Windows Media Center full-screen video experience."
I assume I might need to write a C# app to display a dialog over the media center?
Any other ideas are much appreciated.
My code:
this.stage.nativeWindow.activate();
this.stage.nativeWindow.restore();
this.stage.nativeWindow.maximize();
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
Try to set alwaysInFront property of NativeWindow to true
I have a dual screen Air app (AS3 project) and I ran media center (Windows 7) at full screen then ran my app. My app opens focused.
Here are some of my settings, hope this helps.
Main Stage:
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
Pop screen:
with(popScreenOptions){
type = NativeWindowType.NORMAL;
minimizable = false;
resizable = false;
maximizable = false;
systemChrome = NativeWindowSystemChrome.NONE;
transparent = false;
}
Related
I am trying to resize the window screen, but it seems that the OS is ignoring my request. I am using Windows 10 and Intellij Community Edition.
application {
Window(onCloseRequest = ::exitApplication) {
window.setSize(600,800)
}
}
However, I can modify the other properties of the window, such as the location, whether it can be resized, etc. It seems that some agent is overriding or ignoring my resize request. Any idea where the problem could be?
This works:
window.setLocation(0,0)
window.isResizable = false
Thank you :)
I am writing windows UWP app, I used PickSingleItemAsync to select the screen to capture. It does not list desktop image. So, How do I capture desktop screen image in Windows UWP app?
I used PickSingleItemAsync to select the screen to capture. It does not list desktop image.
PickSingleItemAsync can use to select current available display then to get desktop screen image.
Open picker -> change select option like following.
My game uses a fixed portrait orientation. I have personally tested on a couple phones and a tablet. I have never seen issues with my code; the game always has a fixed, forced portrait render.
However, all of the screenshots generated in the Google Play pre-launch report show the game rendering in a landscape orientation.
Searches suggest that, by default, the report should have been running in portrait anyways.
https://support.google.com/googleplay/android-developer/answer/9842757?hl=en
Can test devices run tests on apps that use landscape configuration?
The test devices are predefined to run tests on fixed portrait page
orientation by default. However if your app is locked to landscape,
you should see videos and screenshots in landscape mode.
Any info is greatly appreciated.
Thanks
Turns out I did not properly setup my app for portrait only orientations.
I had found a post suggesting the following code was enough to make things work:
Screen.autorotateToLandscapeLeft = false;
Screen.autorotateToLandscapeRight = false;
Screen.autorotateToPortraitUpsideDown = true;
Screen.autorotateToPortrait = true;
However, I also had to change a setting in the Unity Editor itself
Project Settings -> Player -> Resolution and Presentation -> Default Orientation -> Portrait
Adding that fixed everything
I am developing application that targets WP7 using Windows Phone 8 SDK so it is also compatible with WP8.
The problem I am facing is that the Status Bar on 720P Emulator is very tall.
Here is the xaml I use:
<phone:PhoneApplicationPage ...
shell:SystemTray.BackgroundColor="{StaticResource HeaderBackgroundColor}"
shell:SystemTray.IsVisible="True"/>
And here is the result
If I add transparency to make the status bar shorter I get a black rectangle.
<phone:PhoneApplicationPage ...
shell:SystemTray.BackgroundColor="{StaticResource HeaderBackgroundColor}"
shell:SystemTray.Opacity="0.99"
shell:SystemTray.IsVisible="True"/>
My question is:
Is there a way to change the color of the black space (I guess there is no way to remove it without targeting WP8 only) ? May be using reflection ..
Try doing it programmatically in your cs as following:
SystemTray.BackgroundColor = Colors.Blue;
SystemTray.ForegroundColor = Colors.DarkGray;
SystemTray.IsVisible = true;
For more you could have a look at this:
Change System Tray Color Windows Phone
Hope it helps!
You can change SystemTray background color
shell:SystemTray.IsVisible="True"
shell:SystemTray.BackgroundColor="Red"
Or you can Hide SystemTray
shell:SystemTray.IsVisible="False"
i want to make an animated wallpaper for windows. So far i have only expreience with Mac OS X programming and i'm new to windows. So i decided to work with QT because it seems that there is more help out there.
Until now i have created the app in a borderless window in qt. It work quiet fine.
But is there a way in QT to change the level of the window so that its appear above the windows wallpaper but behind the icons?
EDIT:
Ok if found a simple solution.
After some testing with the hints form kusg1 I figured out when there is a transparent window mouse events going still to the desktop.
I actualy want have this website has wallpaper: Ticketack. - So i created a frameless window which stays on bottom and has a transparent background and displays the text. Beside this i can change the windows wallpaper directly to get the background of the clock.
So clock text is not behind the icons but i think this will be ok.
Just some ideas: Use the windows flag as Qt::Window | Qt::FramelessWindowHint + Windows Stay at bottom hint, and set the content of the widget with your animated content (the suitable candidate is to use QGraphicsView).
The widget needs two main tasks:
Upon launching, it grabs the desktop background as pixmap and do overlay with the animated content (this needs to have the desktop to be wallpaper-less for simple scenario).
The widget needs to capture mouse and focus event and channel back to actual window command if the user wants to click the icon on the desktop.
Update:
Some pointers for the implementation:
For managing desktop icon, there is a good article here! (also found from SO).
Qt example and demos has an example on the taking desktop snapshot, the snippet is: QPixmap::grabWindow(QApplication::desktop()->winId());
Answer to your question: no, there isn't.
However, you can try something like this using Windows API: How to draw directly on the Windows desktop, C#?