multiple-monitors

Limiting mouse to one display on Mac (Potentially using Cocoa)

我是研究僧i 提交于 2019-11-30 14:57:26
I've been feverishly searching for a method by which to limit the user's mouse to one display in a multi-display setup on a Mac. I've stumbled upon this question: Cocoa: Limit mouse to screen , I promise I have not duplicated this question. The question did, however, spark an idea in my mind that it might be possible to write a simple application using Cocoa to restrict the mouse to one screen, run this application in the background, and still use my game which has been developed in AS3/Adobe AIR/Flash. The game is a full-screen game, and will always be at the same resolution on the same

Choose which monitor does a JavaFX window open in

ぐ巨炮叔叔 提交于 2019-11-30 13:02:46
I have two monitors. I have Eclipse open on the second monitor but when I run my JavaFX code, the JavaFX window always opens up in the first monitor and every time I have to drag it to the second monitor to use it. I have to do this because when it opens on the first monitor, none of the components inside the scene are loaded. It gets loaded only if I drag it to the second monitor. But when I disconnect the second monitor, it loads properly. Can someone please help me out? How do I, by default, make the window to open on the second monitor? NB: My first monitor is a Macbook Pro and the second

Ctrl Alt F8 disconnects displays?

假装没事ソ 提交于 2019-11-30 04:39:17
Learning debugging in PhpStorm and keep accidentally hitting Ctrl + Alt + F8 . I use 3 displays this disconnects the two remotes and goes back to just the laptop. I cannot see this documented anywhere (running Win 10). The worst part is that hitting the combination again does NOT reconnect the displays. Anyone know either: combination to reverse the effect - IE reconnect displays how I can stop it or a tool that will help me find out where it is firing from (motherboard/Windows/Intel/nVidia/USB monitor driver - goodness knows where). Grateful for a helping hand. F8 in various combinations are

How do I determine if a window is off-screen?

空扰寡人 提交于 2019-11-30 02:44:36
问题 In Windows XP and above, given a window handle (HWND), how can I tell if the window position and size leaves the window irretrievably off screen? For example, if the title bar is available to the cursor, then the window can be dragged back on screen. I need to discover if the window is in fact visible or at least available to the user. I guess I also need to know how to detect and respond to resolution changes and how to deal with multiple monitors. This seems like a fairly big deal. I'm

Setting the start position for OpenFileDialog/SaveFileDialog

为君一笑 提交于 2019-11-30 00:26:14
问题 For any custom dialog (form) in a WinForm application I can set its size and position before I display it with: form.StartPosition = FormStartPosition.Manual; form.DesktopBounds = MyWindowPosition; This is particularly important when dealing with multiple monitors. Without such code, when you open a dialog from an application that you have dragged to a second monitor, the dialog appears on the primary monitor. This presents a poor user experience. I am wondering if there are any hooks to set

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

这一生的挚爱 提交于 2019-11-29 22:14:07
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? Personally, I have my windows set up so that one my main monitor, I have the main visual studio monitor, so therefore my code window, maximized, with only the toolbox docked, on the left. This

Limiting mouse to one display on Mac (Potentially using Cocoa)

只谈情不闲聊 提交于 2019-11-29 21:06:55
问题 I've been feverishly searching for a method by which to limit the user's mouse to one display in a multi-display setup on a Mac. I've stumbled upon this question: Cocoa: Limit mouse to screen, I promise I have not duplicated this question. The question did, however, spark an idea in my mind that it might be possible to write a simple application using Cocoa to restrict the mouse to one screen, run this application in the background, and still use my game which has been developed in AS3/Adobe

Choose which monitor does a JavaFX window open in

泪湿孤枕 提交于 2019-11-29 18:30:58
问题 I have two monitors. I have Eclipse open on the second monitor but when I run my JavaFX code, the JavaFX window always opens up in the first monitor and every time I have to drag it to the second monitor to use it. I have to do this because when it opens on the first monitor, none of the components inside the scene are loaded. It gets loaded only if I drag it to the second monitor. But when I disconnect the second monitor, it loads properly. Can someone please help me out? How do I, by

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

陌路散爱 提交于 2019-11-29 16:34:52
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? Try this: With SlideShowWindows(1) Debug.Print .Height Debug.Print .Width End With That'll give you results in points. There are 72 points to the inch, so: ResultInPixels =

Is there a way to programmatically select the rendering GPU in a multi-GPU environment? (Windows)

我是研究僧i 提交于 2019-11-29 02:10:59
问题 Question I have an OpenGL application that will run in machines with diverse multi-GPU configurations (and possibly different Windows versions, from XP to 7). Is there a general way to select the specific GPU that will act as the OpenGL renderer independently of the GPU combination (e.g. NVIDIA + NVIDIA, NVIDIA + AMD, NVIDIA + Intel, etc.)? It has to be a solution that can be applied from application code, i.e. directly in C++ or a script that would be called from the application, with no end