• Log in or sign up for an account here: https://www.sythe.org/login

fade in-out / opacity effect. --> SOURCE

Admigo

Member
Joined
Jan 23, 2010
Sythe Gold
0
Messages
89
removed because no replies
 
rofl, like this is even hard? there is an opacity property for a reason.

hint:
use a timer and increase opacity of control by x every tick
 
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
Code:
sub fade(byval fadeout as boolean, byref frm as form)
if fadeout = true then
for i as integer = 0 to (frm.opacity * 100)
frm.opacity = frm.opacity - 0.01
system.threading.thread.sleep(50)
next i
else
frm.opacity = 0
for i as integer = 0 to 100
frm.opacity = frm.opacity + 0.01
system.threading.thread.sleep(50)
next i
end if
end sub
Completely freehand, might not even work, idk it's 3am.
 
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
Would work Blupig but your loop does exactly the same job as a timer :D

No point in having form elements in something that might be included in an external library, now is there?
 
Runescape Gamblingrunescape gambling
Back
Top