Dual monitors and context menu

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Dual monitors and context menu

Post by jacky »

well, that's weird. I have an empty form, I just use this:

Code: Select all

Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim pt As POINTAPI
GetCursorPos pt
ScreenToClient hwnd, pt
pt.X = pt.X * Screen.TwipsPerPixelX
pt.Y = pt.Y * Screen.TwipsPerPixelY
PopupMenu mnu_popup, vbPopupMenuRightButton, pt.X, pt.Y
End Sub
and it works, both monitors. Tried to compile it in case the bug only appears once compiled, but no it works all the time :?

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Dual monitors and context menu

Post by admin »

Really strange. Impossible. :?

You use Screen.TwipsPerPixelX here? I don't. Different scalemode? (I have ScaleMode=vbPixels on my main form). But this cannot have anything to go with the monitor issue...

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Dual monitors and context menu

Post by jacky »

admin wrote:You use Screen.TwipsPerPixelX here? I don't. Different scalemode? (I have ScaleMode=vbPixels on my main form). But this cannot have anything to go with the monitor issue...
Yes. I removed thoose lines & change ScaleMode, still working....

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Dual monitors and context menu

Post by admin »

vb5 or vb6? (tv3=5!) you never know...

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Dual monitors and context menu

Post by jacky »

admin wrote:vb5 or vb6? (tv3=5!) you never know...
VB6. maybe you could start a new project that just pops up a menu, compile it & send it to me. I'll see if it does the same or not, so we'll know if it's VB5 or if you did something in TV3 that makes it "confused"....

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Dual monitors and context menu

Post by admin »

already on its way...

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Dual monitors and context menu

Post by admin »

So here's the result, thanks to jacky: we are having a VB5 bug here apparently! Redirect further complaints to MS.

I refuse to recompile TV3 using VB6 for a number of reasons, one of them being speed (yep, 5 is faster).

So here's the simple message for all dual monitor freaks out there: "Have TV3 always on your main monitor!" :)

JustinF
Posts: 358
Joined: 28 Jun 2005 23:47
Location: Omaha, Nebraska, USA

Post by JustinF »

I know you said there's nothing you can do about the dual monitor issue, but I just noticed something. On my toolbar I have the Tabs List, Views, and Favorite Folders buttons. The Views and Favorite Folders menu pops up on the primary monitor when XY is on the secondary, but the Tabs List menu pops up in the correct place...on the secondary monitor. Strange.
Justin
Windows 7 Professional

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

JustinF wrote:I know you said there's nothing you can do about the dual monitor issue, but I just noticed something. On my toolbar I have the Tabs List, Views, and Favorite Folders buttons. The Views and Favorite Folders menu pops up on the primary monitor when XY is on the secondary, but the Tabs List menu pops up in the correct place...on the secondary monitor. Strange.
Interesting but not strange if you'd se the source code :wink: I create the Tabs List menu on the fly using TrackPopupMenu and I use GetCursorPos to find the current mouse position. The other -- incorrect -- menus are done by VB-native functions. Makes you think...

Sorry, but dual monitor support (which obviously can be improved) has to wait until some other things are done...

JustinF
Posts: 358
Joined: 28 Jun 2005 23:47
Location: Omaha, Nebraska, USA

Post by JustinF »

admin wrote:Sorry, but dual monitor support (which obviously can be improved) has to wait until some other things are done...
Yes, that's fine. The intention of my post wasn't to try to get you to work on this again, just an observation, that's all. Thanks for the explanation.
Justin
Windows 7 Professional

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

JustinF wrote:
admin wrote:Sorry, but dual monitor support (which obviously can be improved) has to wait until some other things are done...
Yes, that's fine. The intention of my post wasn't to try to get you to work on this again, just an observation, that's all. Thanks for the explanation.
And it was a good observation, because it shows a way to a workaround of that weird VB5-bug described here above.

Creat
Posts: 234
Joined: 22 Sep 2005 18:27

Post by Creat »

Well I can also only confirm the problem (I also always use 2 monitors, but rarely the second one for file operations, so that's why I haven't experienced it before).

And I can add another one: The "About" box pops up on the edge of the primary monitor closest to the secondary one where xyplorer is displayed.
Just like the context menu. If the secondary with XYplorer is left of the primary, the menus and about box will be displayed in the correct height on the left edge of the primary. If the secondary is above, they'll appear at the correct width but at the top edge of the primary and so on...

not sure if this helps, hope it does :)

EDIT: Darn, there were two pages of posts... blind me missed page two, so I guess it's cleared up already :D

bye
Creat

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post by TheQwerty »

Sorry to be a resurrecting the dead here, but I was just wondering if these issues are still impossible to fix?

I've noticed in 6.3 the tab/status bar tooltips and the about box still show up on the primary monitor. I'm guessing they can't be fixed but I'm hoping they were just forgotten about. :lol: Which is it?

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

TheQwerty wrote:Sorry to be a resurrecting the dead here, but I was just wondering if these issues are still impossible to fix?

I've noticed in 6.3 the tab/status bar tooltips and the about box still show up on the primary monitor. I'm guessing they can't be fixed but I'm hoping they were just forgotten about. :lol: Which is it?
I have not gotten any wiser here. So the tooltips, too?! :shock: Also the toolbar tooltips?

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

admin wrote:So the tooltips, too?! :shock: Also the toolbar tooltips?
Nope, those are fine. So are the "clipped items" ones for Tree/List (inc. full path on Tree folder's icon) -- only tooltip for Tabs
Proud XYplorer Fanatic

Post Reply