Dual monitors and context menu

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

: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: 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: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
JustinF
Posts: 358
Joined: 28 Jun 2005 23:47
Location: Omaha, Nebraska, USA

Dual monitors and context menu

Post by JustinF »

If Tracker is on the secondary monitor and you right-click on an empty area of either the listview or treeview, the context menu displays on the edge of the primary monitor. Clicking directly on a file or folder displays the menu in the correct place.
Justin
Windows 7 Professional

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

Re: Dual monitors and context menu

Post by admin »

Users... :) you never cease to surprise me.

OK, I tried something. You tell me if it works. (I limit myself to 1 monitor at a time.)

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

Re: Dual monitors and context menu

Post by JustinF »

admin wrote:Users... :) you never cease to surprise me.
LOL. I'm surprised I haven't ran across this before. I always keep Tracker front-and-center on the primary monitor, though. :lol:
Justin
Windows 7 Professional

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

Re: Dual monitors and context menu

Post by admin »

Should be fixed with v4.20.0019.

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

Re: Dual monitors and context menu

Post by JustinF »

admin wrote:Should be fixed with v4.20.0019.
Unfortunately the problem still exists. :(
Justin
Windows 7 Professional

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

Re: Dual monitors and context menu

Post by admin »

JustinF wrote:
admin wrote:Should be fixed with v4.20.0019.
Unfortunately the problem still exists. :(
Ok. What about other context menus: browsing tabs, toolbar history buttons, various file list column headers... good or nogood?

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

Re: Dual monitors and context menu

Post by JustinF »

admin wrote:Ok. What about other context menus: browsing tabs, toolbar history buttons, various file list column headers... good or nogood?
Browsing Tabs: No good
Toolbar history buttons: No good (I didn't know that existed until now!)
Column headers: No good
Preview/File View context menu in Info Panel: No good
Tooltip when you hover over Created/Modified dates in Info Panel: No good
File Info Tips in listview: GOOD!
Configuration window: No good...it always opens on the primary monitor, in the same spot the context menus show up.

Context menus that work:
Right-click on application title bar
Right-click on scrollbar(s)
right-click on node in treeview
right-click on item in listview
Justin
Windows 7 Professional

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

Re: Dual monitors and context menu

Post by admin »

And you're sure your graphic card is working alright? :wink:

I'll see what i can do...

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

Re: Dual monitors and context menu

Post by admin »

JustinF wrote:Tooltip when you hover over Created/Modified dates in Info Panel: No good
This one I cannot control at all.

The rest, I hope, can be tackled.

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

Re: Dual monitors and context menu

Post by JustinF »

admin wrote:And you're sure your graphic card is working alright? :wink:
Well, I guess you can never be 100% sure :lol:...I do have other apps that have custom context menus that show up correctly, though.
Justin
Windows 7 Professional

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

Re: Dual monitors and context menu

Post by admin »

Just uploaded v4.20.0021... try it.

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:Just uploaded v4.20.0021... try it.
Doesnt seem to work :( I got same results as in JustinF's detailled post. (also, when you right click on a preview, to show it full screen, it's on the main monitor too)

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

Re: Dual monitors and context menu

Post by admin »

jacky wrote:
admin wrote:Just uploaded v4.20.0021... try it.
Doesnt seem to work :( I got same results as in JustinF's detailled post. (also, when you right click on a preview, to show it full screen, it's on the main monitor too)
Oh. Hmm. Any ideas anybody?

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:Oh. Hmm. Any ideas anybody?
did a few tests since I have 2 monitors. But I'm a bit confused cause I haven't been able to get the problem you have :roll:
I just started VB with a Form, a button on it which will popup the menu, and it works with both a "classic"
PopupMenu mnu_popup, , Command1.Left + x, Command1.Top + y
and also using APIs to get the cursor pos:
PopupMenu mnu_popup, , pt.x, pt.y

How do you popup you menus?

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

Re: Dual monitors and context menu

Post by admin »

Well, I first had it all "classic/implicit":

PopupMenu menEdit, vbPopupMenuRightButton

then "classic/explicit":

PopupMenu menEdit, vbPopupMenuRightButton, picList.Left + X, picList.Top + Y

then API:

' get cursor pos on screen
GetCursorPos pt
' convert into client coordinates
ScreenToClient hwnd, pt

PopupMenu menEdit, vbPopupMenuRightButton, pt.X, pt.Y

and it all failed.

Post Reply