Skip to content

FadingGroup_FadeToLevelPercent

function

Delphi
procedure FadingGroup_FadeToLevelPercent (FadingGroupId: LongInt; LevelPercent: LongInt);
C++Builder
void __fastcall FadingGroup_FadeToLevelPercent(System::LongInt FadingGroupId, System::LongInt LevelPercent);
C#
public void FadingGroup_FadeToLevelPercent(int FadingGroupId, int LevelPercent);
VB.NET
Public Sub FadingGroup_FadeToLevelPercent(FadingGroupId As Integer, LevelPercent As Integer)
C++/Qt
void FadingGroup_FadeToLevelPercent (int FadingGroupId, int LevelPercent);

Animates the group from its current level to LevelPercent (0 = fully visible, 100 = fully faded out), over the duration of the group and following its easing curve, then holds the reached level until the next trigger. FadingGroup_FadeIn and FadingGroup_FadeOut are the 0 and 100 special cases: for example a value of 50 dims the group half way. The fade runs asynchronously; use FadingGroup_IsFading or the OnFadingCompleted event to detect the completion. A trigger received while a transition is in progress redirects the fade seamlessly from the current level.