FaderDisplay class |
|
The FaderDisplay class, accessible through the control's Fader.Display property contains information needed to operate the Display used by the embedded Automatic Fader.
For details about using the Automatic Fader refer to the How to use the Automatic Fader section.
The FaderDisplay class is implemented through the following methods and properties:
Methods
Properties
The following code snippets show how to initialise and change settings for this object in your code. These examples assume that you have placed a control named audioDjStudio1 on a form and that you want to change a couple of settings for the Automatic Fader Display (the color of the lines representing the fading songs).
Visual Basic.NET
Here follows the code needed to perform the requested operations
' initialise the Fader AudioDjStudio1.Fader.Init(AudioDjStudio.enumFadeTypes.FADE_SINGLE, 0, 1)
' create the Display and show it over an existing label control (labelFaderDisplay) AudioDjStudio1.Fader.Display.Create(labelFaderDisplay.Handle) AudioDjStudio1.Fader.Display.Show(True)
' set the Blue color for the line representing the song fading-out AudioDjStudio1.Fader.Display.ColorSongFadingOut = Color.Blue
' set the Yellow color for the line representing the song fading-in AudioDjStudio1.Fader.Display.ColorSongFadingIn = Color.Yellow
Visual C#.NET
Here follows the code needed to perform the requested operations
// initialise the Fader audioDjStudio1.Fader.Init (enumFadeTypes.FADE_SINGLE, 0, 1);
// create the Display and show it over an existing label control (labelFaderDisplay) audioDjStudio1.Fader.Display.Create (labelFaderDisplay.Handle); audioDjStudio1.Fader.Display.Show (true);
// set the Blue color for the line representing the song fading-out audioDjStudio1.Fader.Display.ColorSongFadingOut = Color.Blue;
// set the Yellow color for the line representing the song fading-in audioDjStudio1.Fader.Display.ColorSongFadingIn = Color.Yellow;
|