What is the principle of creating such applications? This is something like a presentation. Control window on one monitor, image / text output on another

It is closed due to the fact that it is necessary to reformulate the question so that it is possible to give an objectively correct answer by the participants aleksandr barakin , Pavel Mayorov , Grundy , Saidolim , insolor May 7 '16 at 13:26 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • four
    Re-read your question, you have already answered it yourself. Two or more independent windows for one application is a solution. - rdorn
  • This is the first thing that occurred to me, but maybe there are some other ways? - MaximK
  • It is possible and in another way: we write the window manager, we fasten nails to OS, we screw compatibility with all other software with screws, and we enjoy. Only this is no longer .NET, and certainly not WPF. And the level of enlightenment is completely different - rdorn
  • If you are not satisfied with this option - tell me examples, how would you like to see the application? Because I have not yet seen one that behaves correctly on two monitors at once. On one of the two - quite, but not on both at once, the amount of data is usually not. - Monk

1 answer 1

You have 2 options:

  1. Classical.
    The application has several windows that are either independent by definition, as in Gimp or Lazarus, or can be nested or independent as desired by the user, as in Visual Studio.

  2. An alternative option, if you do not take into account the exotic, you can try to implement the ability to run the main window in full-screen mode on one monitor, and take the management of standard windows to another. This option is used, for example, in VLC.

In any case, you will have a multi-window interface with independent window placement.

PS: In some of the old Windows editions, almost XP, although I could be wrong, I don’t have at hand for tests, there was an option when, when using 2 monitors in desktop extension mode, maximizing the application window caused the window to be stretched to both monitors at once, and it was terribly uncomfortable.

  • Do not stretch the two windows. You really need two different windows. And all sorts of DirectX or Direct3D? - MaximK
  • @ MaksimKutovoy well WPF uses DirectX. So, you, too, no one bothers to use. You can screw up OpenGL if it’s at odds with DX - rdorn