How to create/set a gui without background?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
N_athan
Posts: 40
Joined: 21 Aug 2021, 16:40

Re: How to create/set a gui without background?

Post by N_athan » 24 Jan 2022, 02:04

This is how it would look in case the background was correctly removed, nice edges and transparent background:
2022-01-24_03-58-54.gif
2022-01-24_03-58-54.gif (390.34 KiB) Viewed 394 times
There's nothing with moving controls, what I was pointing to is the result of drawing the controls on a GUI and setting it parent to the layered:
image.png
image.png (13.12 KiB) Viewed 394 times
The white background (the GUI background) gets merged with the picture.

User avatar
Hellbent
Posts: 2109
Joined: 23 Sep 2017, 13:34

Re: How to create/set a gui without background?

Post by Hellbent » 24 Jan 2022, 04:37

N_athan wrote:
24 Jan 2022, 02:04
There's nothing with moving controls, what I was pointing to is the result of drawing the controls on a GUI and setting it parent to the layered:
Sorry, your op made it sound like you wanted a rounded window with clean edges and your image had a opaque rounded rectangle not a semi-transparent one.

I don't think I know what you are trying to do other than that.

teadrinker
Posts: 4326
Joined: 29 Mar 2015, 09:41
Contact:

Re: How to create/set a gui without background?

Post by teadrinker » 24 Jan 2022, 04:54

I would just create a layered window from the bitmap and an owned window with controls which moves with the owner.

User avatar
lmstearn
Posts: 694
Joined: 11 Aug 2016, 02:32
Contact:

Re: How to create/set a gui without background?

Post by lmstearn » 24 Jan 2022, 08:07

Another thing to try is subclass the controls in order to draw and paint them the way you want- would it help if they were also flagged as layered windows?
Edit: There's a very interesting old thread on WS_EX_COMPOSITED, by the looks of it sure to solve some problems,- bound to uncover more. :(
Alternatively, re the above graphic in your last post- ditch the layering and go the direct composition way with something like wpf and use WS_EX_NOREDIRECTIONBITMAP, but that, like SetWindowRgn, bricks DWM for the window.
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH

Post Reply

Return to “Ask for Help (v1)”