Transparent canvas but no events on Windows
Posted: Fri Aug 30, 2024 4:25 pm
Bear with me... I develop on MacOS but trying to get one of my modules to work under Windows...
I have the following code to make a canvas transparent in Windows but after doing this, the canvas no longer receives any events.
Am I missing something? Or am I pretty much stuck here?
Thanks!
Phil
I have the following code to make a canvas transparent in Windows but after doing this, the canvas no longer receives any events.
Code: Select all
Define hwCanvas = GadgetID(canvas)
Define transparentColor = RGB(255, 255, 255) ;white transparent
Define opacity = 0
SetWindowLong_(hwCanvas, #GWL_EXSTYLE, GetWindowLong_(hwCanvas, #GWL_EXSTYLE) | #WS_EX_LAYERED)
SetLayeredWindowAttributes_(hwCanvas, transparentColor, opacity, #LWA_COLORKEY)
Thanks!
Phil