MFader ActiveX Control

Overview:

With MFader ActiveX control you can write Multimedia application, Screen savers, Presentations, Slideshow and many more. I believe it is a great Multimedia control with 115 dazzling effects including Rolling, Pushing, Pulling, Revealing, Zooming, Stretching, Squeezing, Melting, Spiral and much more.

MFader properties, methods and events:

MFader has the same properties, methods and events like a normal picture box control but the real meat is in the following few custom properties and methods.

1-PROPERTIES

Property name

Description

Example

About

Displays About message box

-

ClearBeforeFade

Clears MFader as if it wasn’t initialized

MFader1.ClearBeforeFade=True

DelayAfterEffect

Delay in milliseconds (from 0 to one million millisecond) MFader should wait before applying the next effect.

‘ Wait for 5 seconds

MFader1.DelayAfterEffect = 5000

DrawWidth

Width of the MFader brush to draw the picture, the smaller the DarwWidth the Smoother the drawing (from 0 to 50)

‘ Make it thick ( 10 pixels)

MFader1.DrawWidth = 10

Effect

Tells MFader what effect to run, it can be:

=0 means Sequence Fading

=1 means Random Fading

>1 Specific effect

‘ Make MFader select a Random Effect

Mfader1.Effect = 1

FadingSpeed

How fast the effect should be done? This property specifies a speed from 0 to 50. The smaller the number the faster the effect.

‘ The slowest speed

MFader1.FadingSpeed = 50

Picture

As normal PictureBox it is used to load the desired picture except that the loaded image will not be shown until you call the GO method, because the MFader load the picture in memory but doesn’t show it until you order it. Note that the allowable pictures are .BMP (best), .JPG and .GIF.

‘ Load whatever desired image

Set MFader1.Picture = LoadPicture( Image path here )

ShowBackground

This property will asks the MFader to copy the picture of the MFader Parent/Container and display it immediately before applying the next effect.

MFader1.ShowBackground = True

 

2-Methods

Event name

Description

Example

Go

This method will inform MFader that you want to start the Fading process with the specified Effect, Speed and DrawWidth.

‘ First load a picture

Set MFader1.Picture = LoadPicture( picture to load )

‘ Select Effect

MFader1.Effect = [Roll Left]

‘ Select Fading Speed (the Fastest)

MFader1.FadingSpeed = 0

‘ Select Draw Width (the Smoothest)

MFader1.DrawWidth = 1

‘ Here we GO

MFader1.Go

StopIt Immediately Stops the current effect if it is playing.

‘ The user want to exit

MFader1.StopIT = True

‘ Unload actions go here then End

www.ancientsoft.com