Creating a GUI with a transparent background? (per-pixel transparency)

Get help with using AutoHotkey and its commands and hotkeys
iseahound
Posts: 612
Joined: 13 Aug 2016, 21:04
GitHub: iseahound

Creating a GUI with a transparent background? (per-pixel transparency)

11 Sep 2020, 09:37

I have some code that works on Windows 8+ that is capable of creating a clickable transparent window. I am using a Layered Child Window that is not compatible with earlier versions of windows.

Image

This is a picture of a green gradient loaded from a PNG file.
Note: The completely transparent parts are clickable.

However it seems like swing has a way of doing this in previous versions of windows that are targeted by Java SE 6.

Image

https://docs.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html#per-pixel

How can? Are they creating their own window from scratch, not utilizing any of the windows components, but a purely Layered Window? And even if they were, how are they getting the completely transparent parts to be clickable, if at all?

Return to “Ask For Help”

Who is online

Users browsing this forum: SOD and 36 guests