fullscreen

Fullscreen feature for Java Apps on OSX Lion

我是研究僧i 提交于 2019-11-27 04:37:28
How can I (natively) implement the fullscreen feature of OSX Lion in a Java application? The current answers given incorporate a good method for achieving a sort-of-fullscreen feature. I've read that Eclipse may be able to use the "native" fullscreen feature of Lion. That's what I'm asking about. Dyorgio I found this on Apple's Java release notes: Mac OS X 10.7 Lion Fullscreen Support Java applications on Lion can now opt into the Fullscreen window feature per-window. Developers can use the com.apple.eawt.FullScreenUtilities class to mark windows as able to be full screened, and the com.apple

Going fullscreen on secondary monitor

安稳与你 提交于 2019-11-27 03:50:43
How can you program a dotNet Windows (or WPF) Application in order to let it going fullscreen on the secondary monitor? grantnz Extension method to Maximize a window to the secondary monitor (if there is one). Doesn't assume that the secondary monitor is System.Windows.Forms.Screen.AllScreens[2]; using System.Linq; using System.Windows; namespace ExtendedControls { static public class WindowExt { // NB : Best to call this function from the windows Loaded event or after showing the window // (otherwise window is just positioned to fill the secondary monitor rather than being maximised). public

fullscreenchange event not firing in Chrome

拜拜、爱过 提交于 2019-11-27 03:24:16
问题 I'm trying to monitor when the browser enters fullscreen mode. This blog is referenced everywhere I search as the guide on the fullscreen API. http://robertnyman.com/2012/03/08/using-the-fullscreen-api-in-web-browsers/ This SO answer also claims this works. Fullscreen API: Which events are fired? Here is my code with jQuery, but it's not firing the event. $(document).on("webkitfullscreenchange mozfullscreenchange fullscreenchange",function(){ console.log("bang!"); }); Seems simple enough, but

Detect if user has any application running in fullscreen [duplicate]

倾然丶 夕夏残阳落幕 提交于 2019-11-27 01:57:16
问题 This question already has an answer here: Is there a way to check to see if another program is running full screen 2 answers I did a notifier app in C# that sits on the taskbar and display a balloon when I get something from it, similar to Google Talk when you receive a new email but at the momment it ignores if I am running an application on fullscreen or not and just do it is job. How can I detect and make sure an application is in fullscreen mode? I don't mean maximized (as an app could be

Fullscreen API: Which events are fired?

安稳与你 提交于 2019-11-27 01:20:28
I need to know which (DOM) events are fired when a user enter the fullscreen mode via the new Fullscreen API . I tried for example this snippet but it doesn't fire: jQuery('body').on('fullScreenChange', function() { alert("Fired!"); }); Your link shows the answer ... When full-screen mode is successfully engaged, the document which contains the full-screen element receives a fullscreenchange event. When full-screen mode is exited, the document again receives a fullscreenchange event. Note that the fullscreenchange event doesn't provide any information itself as to whether the document is

Custom Dialog in full screen?

限于喜欢 提交于 2019-11-27 01:13:22
问题 Is there any way to make my Dialog view full screen, i.e dialog occupy the entire screen (like an Activity). I tried using the LayoutParams and styles like <item name="android:windowFullscreen">true</item> but nothing seems to be working. I found a way of getting rid of the Title bar, but couldn't find a way to put a dialog in full screen. So can any one suggest me a way to do it. <?xml version="1.0" encoding="utf-8"?> <resources> <style name="MyTheme" parent="@android:style/Theme.Dialog">

Fullscreen widget

谁说胖子不能爱 提交于 2019-11-27 00:57:26
问题 How can I make my widget fullscreen? I've tried something like this: void MainWindow::SetFullScreen() { // Make our window without panels this->setWindowFlags( Qt::FramelessWindowHint | Qt::Tool | Qt::WindowStaysOnTopHint ); // Resize refer to desktop this->resize( QApplication::desktop()->size() ); this->setFocusPolicy( Qt::StrongFocus ); this->setAttribute(Qt::WA_QuitOnClose, true); qApp->processEvents(); show(); this->setFocus(); } But widget isn't over system panels. Any another ideas? OS

Stopping the use of Tab/Alt-F4 in a full-screen program in Java/Swing

五迷三道 提交于 2019-11-26 22:17:34
问题 I need a way to stop people using other programs while my Java program is running. i.e stopping people switch tabs and pressing Alt-F4. 回答1: To make the program full screen use; window.setExtendedState(Frame.MAXIMIZED_BOTH); //maximise window window.setUndecorated(true); //remove decorations e.g. x in top right And to make the window always on top use(To stop people using other running programs); window.setAlwaysOnTop(true); 回答2: You're not going to be able to do this at the Java level - you

Fullscreen feature for Java Apps on OSX Lion

别说谁变了你拦得住时间么 提交于 2019-11-26 22:14:56
问题 How can I (natively) implement the fullscreen feature of OSX Lion in a Java application? The current answers given incorporate a good method for achieving a sort-of-fullscreen feature. I've read that Eclipse may be able to use the "native" fullscreen feature of Lion. That's what I'm asking about. 回答1: I found this on Apple's Java release notes: Mac OS X 10.7 Lion Fullscreen Support Java applications on Lion can now opt into the Fullscreen window feature per-window. Developers can use the com

Take screenshot of DirectX full-screen application

戏子无情 提交于 2019-11-26 22:01:25
This boggles me. DirectX bypasses everything and talks directly to the device driver, thus GDI and other usual methods won't work - unless Aero is disabled (or unavailable), all that appears is a black rectangle at the top left of the screen. I have tried what other have suggested on several forums, using DirectX to get the back buffer and save it, but I get the same result: device->GetFrontBufferData(0, surface); D3DXSaveSurfaceToFile("fileName", D3DXIFF_BMP, surface, NULL, NULL); Is there any way to get a screenshot of another full-screen DirectX application when Aero is enabled? Have a look