fullscreen

Cocoa Open a fullscreen window on the second screen maintaining the app visible on the first

元气小坏坏 提交于 2019-12-01 12:04:22
I'm developing an app on OSX 10.7 and I'm trying and the goal is to open some images on a second screen while the app has to run normally on the first. So the code is the following: NSScreen *screen = [[NSScreen screens] objectAtIndex:1]; fullScreenWindow = [[NSWindow alloc] initWithContentRect:[screenFrame] styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO screen:screen]; [fullScreenWindow setLevel: NSMainMenuWIndowLevel + 1]; [fullScreenWindow setOpaque: YES]; [fullScreenWindow setBackgroundColor:[NSColor yellowColor]]; fullScreenView = [[NSView alloc] initWithFrame

How to activate full screen control DOTS (SDK14)

醉酒当歌 提交于 2019-12-01 11:34:41
问题 Does anybody know what i mean? In fullscreen mode of the new camera app on my galaxy nexus the control buttons are changing into 3 dots. How can i activate that programmatically? 回答1: You can use getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE); within your activity. See View.SYSTEM_UI_FLAG_LOW_PROFILE 回答2: It's a standard Options Menu. On 3.0+ it creates those dots, in 2.3.3- you access it with the menu key. http://developer.android.com/guide/topics/ui/menus

Creating gridview with 3 rows of imageviews that fill the whole screen

时光毁灭记忆、已成空白 提交于 2019-12-01 11:16:54
问题 I have been searching everywhere for similar solutions but none seem to work for me. On my first screen I will have a gridview which consists of 1 column and 3 rows vertically. Each row will have an imageview and a partially transparent textview on top of the text view. The imageviews span the screen width fine. My only problem is that the 3 image views do not span the full screen vertically, there is space inbetween rows, although I have tried many methods to fix this. I will post up my xml

Detecting fullscreen on Mac

帅比萌擦擦* 提交于 2019-12-01 11:03:19
I am writing an IM client for Mac (in Python, but an Objective C / Cocoa solution here is fine). I want to detect whether or not the user is currently watching a movie or playing a game in the foreground, or doing anything else that takes up the entire screen. If so, I won't play a sound when a new IM comes in, but if not, I will play the sound. How can I detect this? Is there some way to get the foreground window with Applescript and look at its dimensions? Or is there some other API call? To check for full-screen, call CGDisplayIsCaptured(screenID) on each screen. But I'm not sure if you're

Show image in Full screen

…衆ロ難τιáo~ 提交于 2019-12-01 10:35:55
问题 I am working on Windows Phone 8 app and have a Image view like this in XAML: <Image Name="Image" Grid.Row="0" Visibility="Collapsed" Width="Auto" Height="Auto" Tap="Image_tap" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="1,1,1,1"/> Now i have this event called Tap="Image_tap" , when i tap on the image i want to show the same image in full screen without any bar on top and bottom, how to acheive this ? 回答1: Bottom bar is ApplicationBar and top bar is SystemTray . If you

Cocoa Open a fullscreen window on the second screen maintaining the app visible on the first

断了今生、忘了曾经 提交于 2019-12-01 10:30:23
问题 I'm developing an app on OSX 10.7 and I'm trying and the goal is to open some images on a second screen while the app has to run normally on the first. So the code is the following: NSScreen *screen = [[NSScreen screens] objectAtIndex:1]; fullScreenWindow = [[NSWindow alloc] initWithContentRect:[screenFrame] styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO screen:screen]; [fullScreenWindow setLevel: NSMainMenuWIndowLevel + 1]; [fullScreenWindow setOpaque: YES];

Fullscreen stage is not working properly in JavaFX 2.1?

好久不见. 提交于 2019-12-01 09:26:42
The first stage that I load it always open properly as fullscreen. stage.setFullScreen(true); stage.setScene(login_scene); But when I change to another FXML the applications stays fullscreen (no top toolbar.. ), but the actual view content gets resized on the prefWidth/prefHeight of the root AnchorPane from FXML (I can see the desktop in my bottom right corner :|), and I want it to be dynamic to my screen resolution. Thanks. @Later Edit: So on the start method of my main Class I load a Scene (created from an FXML doc) and set it to the Stage (the start method param). I save this stage for

How do I display a tkinter application in fullscreen on macOS?

余生颓废 提交于 2019-12-01 08:32:30
I am just learning python, and I am trying to make a window go full screen, which I have achieved, but I am now wanting to get rid of the title bar across the top. It currently looks like the image below, but I want it to also go over the Mac top toolbar at top (like a splash screen). from tkinter import * root = Tk() root.attributes('-fullscreen', True) root.attributes('-topmost', True) root.overrideredirect(True) def quitApp(): # mlabel = Label (root, text = 'Close').pack() root.destroy() # placing the button on my window button = Button(text = 'QUIT', command = quitApp).pack() I believe

JDialog Not Displaying When in Fullscreen Mode

十年热恋 提交于 2019-12-01 08:22:37
问题 I have an application that runs in fullscreen mode and has been working fine. Now I need to add a simple, undecorated dialog and I'm running into trouble. If I run the application maximized but not in fullscreen, the dialog displays and functions as expected. When I switch back to fullscreen, the dialog will not display. The dialog extends JDialog and only contains a JSlider and a couple of buttons. It is undecorated and not modal . (I disabled modality for testing purposes -- it was a pain

Cocoa: Limit mouse to screen

拈花ヽ惹草 提交于 2019-12-01 08:12:08
I'm developing a kiosk mode application for OSX. In some circumstances, another screen gets attached. My application runs in fullscreen on one screen using: [self.window.contentView enterFullScreenMode:s withOptions:[NSDictionary dictionaryWithObject:appOptions forKey:NSFullScreenModeApplicationPresentationOptions]]; The options are the following: [NSNumber numberWithUnsignedInt:(NSApplicationPresentationHideMenuBar| NSApplicationPresentationHideDock| NSApplicationPresentationDisableHideApplication| NSApplicationPresentationDisableProcessSwitching| NSApplicationPresentationDisableAppleMenu)];