flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > layered window demo

Author
Thread Post new topic Reply to topic
Ali.Z



Joined: 08 Jan 2018
Posts: 719
Ali.Z 15 May 2024, 09:26
title

edit:
i thought about adding this feature + topmost to fasm ide, but i gave up messing up with its source(fasm).

edit2:
forgot to include source, included now.


Description:
Download
Filename: layered_window.7z
Filesize: 1.57 KB
Downloaded: 163 Time(s)


_________________
Asm For Wise Humans


Last edited by Ali.Z on 23 May 2024, 03:16; edited 1 time in total
Post 15 May 2024, 09:26
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4047
Location: vpcmpistri
bitRAKE 16 May 2024, 01:46
I like this effect, but I'd have the WM_CLOSE handler do the fadeout or at least have it wait on the fadeout thread. Dialog UI remaining active could be problematic. If the fadeout is made very slow, it's possible to get several threads pingppongging the opacity, lol. Very Happy

_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 16 May 2024, 01:46
View user's profile Send private message Visit poster's website Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 719
Ali.Z 16 May 2024, 01:58
you can immediately close the window when it is fading in, it will cause both fade in and fade out to fight, pingpoinggin and it will eventually close when alpha reaches 0.

_________________
Asm For Wise Humans
Post 16 May 2024, 01:58
View user's profile Send private message Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 719
Ali.Z 16 May 2024, 02:00
bitRAKE wrote:
I like this effect


be prepared for my next and simpler demo, not totally silly, useful, but painful to do correctly.

_________________
Asm For Wise Humans
Post 16 May 2024, 02:00
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4047
Location: vpcmpistri
bitRAKE 16 May 2024, 02:08
Code:
bb DWM_BLURBEHIND fEnable: TRUE, dwFlags: DWM_BB_ENABLE
DwmEnableBlurBehindWindow [hWnd], addr bb    
... is another transparency effect.
Post 16 May 2024, 02:08
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.