Pelles C forum
Pelles C => Bug reports => Topic started by: tiwag on August 24, 2005, 08:40:09 AM
-
on my devel machine i use a dual monitor desktop
when Poide is on the primary monitor displayed, the right-click popup-menu (rpopmenu) is displayed (as expected) with it's left upper corner at the current cursor position.
when Poide is on the secondary monitor displayed, the rpopmenu is displayed at the height of the current cursor position, but on most left side of the primary monitor :?
this is not a videocard-driver issue, because all other windows apps show their rpopupmenu's on the right place, regardless of which monitor is actually used for displaying.
my dual monitor configuration:
2 1
left right
(secondary monitor) (primary monitor)
(http://tiwag.front.ru\PellesC\desktop_poide.png)
maybe it looks weird at the first moment, but i often run a VMare PC emulation box with linux or some test-os in fullscreen mode -
then Vmware displays in full screen on the right monitor (1),
while i have my windows XP with tasbar and everything on the left monitor (2).
-
I don't have a dual monitor setup to test with, but I assume it's because there is a bug in Microsoft's windowsx.h.
The coordinates in HANDLE_WM_CONTEXTMENU are treated as unsigned - which seem to be consistent with older API documentation. I recent documentation the coordinates are suddenly signed(!) - as far as I can tell a rather silent, but very important, change! :evil:
The x- and y-coordinates are packed into the LPARAM, so they must be extracted carefully - for example 65535 is not the same as -1!
Pelle
-
no problem- if you want to have a test on a dual monitor desktop - just drop me a message :)
-
If you have time, you can test with the attached version. I have modified the macro in windowsx.h and recompiled the IDE. I have also added support for Shift+F10.
Pelle
-
If you have time, you can test with the attached version...
Hi Pelle , now it works as expected !
thanks
tiwag
-
Hi Pelle , now it works as expected !
thanks
tiwag
Very good - thanks for the info!
Pelle
-
Hi Pelle,
i found another bug related (probably) to the same subject.
The screen-coordinates of PoIDE are not recovered correctly after closing.
If PoIDE was displayed in any negative coordinates area of the desktop,
it always restores to quadrant 1 (x>0, y>0).
-
i found another bug related (probably) to the same subject.
The screen-coordinates of PoIDE are not recovered correctly after closing.
If PoIDE was displayed in any negative coordinates area of the desktop,
it always restores to quadrant 1 (x>0, y>0).
Hello,
The window is most likely limited to the main monitor. Not strictly a bug.
Supporting multiple monitors means small changes in several places. Few people will probably ever use this feature, so it has very low priority. Changing the context menu was needed for other reasons too, but I will not do more about multiple monitors for now.
Pelle
-
... Few people will probably ever use this feature...
Don't fool yourself :|
...but I will not do more about multiple monitors for now.
OK :shock:
thanks tiwag