Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Multi-monitor dialog positioning bug [patch]
280Z28:
Dialogs open on the primary display in Windows regardless of which monitor the codeblocks window is open on. Dialogs should open on the same monitor as Code::Blocks is currently displayed on.
This patch fixes the issue. :) Patch applies using TortoiseSVN in codeblocks/src.
--- Code: ---Topic: Multi-monitor dialog position update
Description:
! Dialogs would not open on the same screen as the parent dialog when the parent
is not on the primary display in a multi-monitor Windows environment
--- End code ---
I followed the tabs/spaces pattern of each file. In files where I saw that the entire file followed one pattern (say hard tabs) except for one or two lines in a function I updated (that used spaces) I fixed those two lines. In files that were "mixed content" through the file, I left those alone.
If you look at the patch copy in a whitespace viewer, you will see that I was consistent for each file and did not change any patterns.
[attachment deleted by admin]
280Z28:
By the way, I have just assumed that I'm not supposed to have commit access to the repository. That's why I've just posted patches. If y'all are expecting me to commit my changes you'll have to let me know or it'll never get done.
killerbot:
vey well done, this is indeed very annoying, if you need to switch monitors because that dialog popped up somewhere else.
Waiting for an svn update where Yiannis applied yoiur changes ......... 8)
tiwag:
i've applied your patch to my working copy and it is a big improvement ! thanks
thomas:
Lol, don't get a wrong idea because I say something opposing every time you come up with something. :lol:
--- Quote from: 280Z28 on December 15, 2005, 06:27:46 am ---Dialogs should open on the same monitor as Code::Blocks is currently displayed on.
--- End quote ---
This is very much a matter of taste, and in my opinion not generally true.
It depends how you use your secondary monitor, and on the size of your monitors. I often send a program to the secondary screen when working with two apps (that may even be two instances of Code::Blocks), but I expect message boxes and dialogs to open on the primary screen.
This has a simple biological reason. The main screen is within the central 30° of my field of view, but the secondary screen in the peripheral field. Objects in the peripheral field are not seen as good as the ones in the central field, obviously, so you have to look aside or turn your head.
Navigation
[0] Message Index
[#] Next page
Go to full version