Create a window that lets the input events fall through

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
CiprianRosculescu
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Aug 26, 2019 7:25 am

Create a window that lets the input events fall through

Post by CiprianRosculescu » Mon Aug 26, 2019 7:58 am

Hello, i am trying to create a window that is transparent and ignores the inputs so they fall through the windows bellow

I have seen answers to this question These seem to add some complexity which if possible i would like to avoid. I am just curious if there is a new functionality that would make this action simpler. I am a relative beginner in wxWidgets so any information is helpfull

PS: I would like it if there war another method, but first and foremost i would like just some closure on this issue
PS2: One of the answers listed above focuses on doing this in Windows. While i am thinking about windows primarily i would certainly like a more cross platform solution

Thank you in advance for any advice

catalin
Moderator
Moderator
Posts: 1524
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Re: Create a window that lets the input events fall through

Post by catalin » Mon Aug 26, 2019 8:38 am

You should better describe what you are trying to achieve. How exactly would you use such a window?
Should it be transparent only in relation with its wx- parent or with the desktop and any other window outside your program?
By the contents of the links you posted I get that you want transparency both visually and for events, right?

CiprianRosculescu
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Aug 26, 2019 7:25 am

Re: Create a window that lets the input events fall through

Post by CiprianRosculescu » Mon Aug 26, 2019 11:00 am

To be more clear, yes, i want transparency for the desktop and any other elements. So that means that i want transparency, as you said, both visually and for events.

User avatar
doublemax
Moderator
Moderator
Posts: 14044
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Create a window that lets the input events fall through

Post by doublemax » Tue Aug 27, 2019 3:43 pm

Can you explain the "bigger picture"? What do you want to do from a user's point of view, not from a programmer's point of view?
Use the source, Luke!

User avatar
T-Rex
Moderator
Moderator
Posts: 1182
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

Re: Create a window that lets the input events fall through

Post by T-Rex » Tue Aug 27, 2019 4:30 pm

If you target WIndows platform only, then what you need is probably DirectX overlay. And this comes out of scope of wxWidgets.

There are some existing libs for this:
https://github.com/michel-pi/GameOverlay.Net
https://github.com/lolp1/Overlay.NET
https://www.unknowncheats.me/forum/c-an ... lated.html

You could also dig CodeProject for other samples.
https://www.codeproject.com/Articles/20 ... rlay-Tools

Post Reply