multiple-monitors

How can I make a WPF window maximized on the screen with the mouse cursor?

假如想象 提交于 2019-11-29 00:54:09
According to the MSDN documentation for the WindowStartupLocation Property : Setting CenterScreen causes a window to be positioned in the center of the screen that contains the mouse cursor. Although the MSDN doc for the CenterScreen Field itself defines it somewhat less clearly as: The startup location of a window is the center of the screen on which it is opened. A simple test shows this working as it should: MainWindow.xaml <Window x:Class="CenterScreenTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

Why does WPF MediaElement not work on secondary monitor?

♀尐吖头ヾ 提交于 2019-11-28 23:13:42
My application uses the WPF MediaElement to play video (MOV files). This works well when playing on the Primary monitor but freezes when the window is moved to the secondary monitor. I have tried the following without success: Starting the application on the secondary monitor Swapping the primary & secondary monitors (problem transfers to the new secondary monitor) When the application window spans both monitors it works correctly but as soon as it is entirely within the secondary monitor the video freezes. Once in this state, moving the application back to the primary monitor doesn't help

Start program on a second monitor?

久未见 提交于 2019-11-28 18:47:24
Is there a way to specify which monitor a application appears on in Delphi or C++Builder? I am developing a simple program for a customer, which displays kitchen orders on a secondary monitor, generated by a hospitality system. Currently they need to manually drag the window onto the second monitor after it starts. Save the window position before program shutdown and restore them on startup. Multimonitor displays just increase the size of the desktop; other monitor surfaces just have a different section of the same X/Y plane with its origin at the top-left of the primary monitor. This can be

Visual Studio and dual/multiple monitors: how do I get optimized use out of my monitors? [closed]

一世执手 提交于 2019-11-28 18:33:32
问题 Ultramon is a great program for dual monitors (stretching screen across monitors), but I was wondering if there is any way do to something in Visual Studio like have one tab of code open on one monitor and a second tab of code open on the second monitor with only one instance of Visual Studio running? Or are there any other suggestions on getting most bang for buck on dual monitors and Visual Studio? 回答1: Personally, I have my windows set up so that one my main monitor, I have the main visual

How to open two instances of Chrome kiosk mode in different displays (Windows)

对着背影说爱祢 提交于 2019-11-28 16:50:56
问题 We are developing a web application that needs to open in two different browser instances each on a different Screen. Obviously the pc we are using has dual display already, and both monitors have the same size and resolution. The idea is that as soon as Windows starts the two applications should open immediately in fullscreen, our preferred browser is Chrome as it counts with several commands that might help us accomplish the task. We have succeeded on adding to the startup programs two

Any tips on how to organize Eclipse environment on multiple monitors?

人走茶凉 提交于 2019-11-28 13:22:58
问题 I can't find a good way of putting Eclipse windows on two monitors. Currently I just detached (clicked on a header and dragged) a few windows to a secondary monitor (package explorer, console, and outline) while leaving primary monitor with maximized source editing window. It works pretty well except few annoying issues. Detached windows are not in focus while you are editing your code. Which means that, for example, last build shortcut ( Alt - Shift - X , Q ) doesn't work because it can't

In a dual-monitor system, finding out on which monitor a PowerPoint slideshow is displayed

坚强是说给别人听的谎言 提交于 2019-11-28 09:45:16
问题 In Powerpoint 2007/2010 run on a multiple monitor system, we can select the monitor on which the slideshow will be shown by going to "Slide Show"-> "Set up slideShow" -> "Display SlideShow on" and selecting the desired monitor. Is it possible to programmatically determine these settings (e.g. using VBA)? What I actually need is the pixel-resolution of the monitor on which the slideshow is shown. How can I do that? 回答1: Try this: With SlideShowWindows(1) Debug.Print .Height Debug.Print .Width

Programmatically determining individual screen widths/heights in Linux (w/Xinerama, TwinView, and/or BigDesktop)

风格不统一 提交于 2019-11-28 09:30:31
I'm developing a little side-project to display multiple wallpapers on multiple screens under GNOME (something that apparently can't be done by GNOME itself or anything else). I've figured out how to do the main part of it (using the ImageMagick components, for the curious); I'm trying to automate the configuration system. To do that, I need a way to determine the dimensions of the individual screens are. Can anyone give me a hint where to look for that? I presume the X server itself has the information, but I'm not sure how my program can ask for it. It looks like there's a libXinerama API

Programmatically changing the “presentation display mode”

孤者浪人 提交于 2019-11-28 07:05:07
The presentation display modes are those you see when using the Windows + p shortcut: Computer Only Duplicate Extend Projector Only Do any API calls exist which allow one to switch between these display modes? I want to programmatically switch between monitor and HDMI TV (and do a bunch of other things simultaneously, hence Windows + p not being useful), but I'm hitting a brick wall. In case the EnumDisplaySettingsEx and ChangeDisplaySettingsEx functions do not work for you, you can also use this: private void SetDisplayMode(DisplayMode mode) { var proc = new Process(); proc.StartInfo.FileName

Determine windows display number and/or layout via java

百般思念 提交于 2019-11-28 05:28:13
问题 I have a fullscreen java app that will run on an 8 monitor digital signage type display on a Windows 7 machine. I need to be able to display content on specific physical monitors. Ideally I would like the displays ordered 1-8 in Display Properties -> Settings, however many attempts of unplugging/plugging in and reordering have failed to get the physical monitors to appear in any deterministic order via the Display Properties->Settings. I can reorder them fine, but when my java program