Closed Th3C0D3R closed 7 months ago
Inside the Overlay.cs
if one change the
800,
600,
0,
0,
to
800,
600,
1920, (for my screen)
0,
will show the overlay on the other screen.
Can you compile and execute Examples -> Multithreadedoverlay?
in there can you change “Set Position” to your monitor on the right hand side and press resize button?
does it work for you?
ok I found out what the problem is.
Can you compile and execute Examples -> Multithreadedoverlay?
in there can you change “Set Position” to your monitor on the right hand side and press resize button?
does it work for you?
I have and it cuts at the screen end.
the solution is:
you have to unmaximize the win32 window:
that worked.
//edit: why maximizing the window in first place? doing "normal" and then setting the size to screensize should be fine too
the only thing extra we are doing when user call User32.ShowWindow(this.window.Handle, ShowWindowCommand.ShowMaximized);
is to call the resize function (as shown here).
1) I have uploaded new code in f/testchanges
branch, can you see if that fix your issue?
2) if not, can you un-comment the code in that branch (ref https://github.com/zaafar/ClickableTransparentOverlay/blob/f/testchanges/ClickableTransparentOverlay/Overlay.cs#L561-L563) and see if that fixes the issue?
Will test it when I am at my PC again. Probably not "today" (for the next 14h).
the only thing extra we are doing when user call
User32.ShowWindow(this.window.Handle, ShowWindowCommand.ShowMaximized);
is to call the resize function (as shown here).1. I have uploaded new code in `f/testchanges` branch, can you see if that fix your issue?
that fixed the issue. problem solved then :) will close issue the PR
@Th3C0D3R which part fixed the issue? Commented one or both ( Un-commented + commented ).
@Th3C0D3R which part fixed the issue? Commented one or both ( Un-commented + commented ).
@zaafar Just using it so the first fix did it without the commented thing
In the current NuGet Package, the overlay window only displays on the "primary" screen. In the current source code it seams that something is implemented so the overlay window can be moved:![grafik](https://github.com/zaafar/ClickableTransparentOverlay/assets/7798500/06ae1d53-d9ff-4a24-9353-a4234b43e740)
I build the source repo and added it to my project. I am trying to set those properties to the new Position and Size depending on the selected screen Bounds:![grafik](https://github.com/zaafar/ClickableTransparentOverlay/assets/7798500/47437fa0-de31-470d-8304-34c92cdc5cab)
the overlay window disappears from the main screen but not appear on the selected screen (I set the ImGui window to the same coordinates relative to the old screen)
on main screen:![grafik](https://github.com/zaafar/ClickableTransparentOverlay/assets/7798500/8c870b9d-fced-4db5-a463-e597bd7c57bc)
after moving to the other screen (without any debugging):![grafik](https://github.com/zaafar/ClickableTransparentOverlay/assets/7798500/68364115-b948-441c-a28d-7119a13a18cc)
set Position and Size:![grafik](https://github.com/zaafar/ClickableTransparentOverlay/assets/7798500/f58cede1-c1b1-4a71-8e36-e8d79dd055fc)
to clarify: I have 3 Monitors, the selected monitor is on the right so X is 1920 and Y is 0 whichis the upper left corner of the right monitor