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 to the specified fading level and holds it.

Remarks

Starts an animated transition from the current level of the group to LevelPercent (0 = fully visible, 100 = fully faded out), over the duration of the group and following its easing curve. The reached level is held 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 halfway.

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.