Using UntilEx

This sample illustrates the use of UntilEx(). Left click on the image to change it, and then right click it again to return it to the original image.

The following is the equivalent Until() code:

m = DAControl.MeterLibrary;

mediaBase = mediaBase = "..\\..\\..\\Media\\";
imgBase = mediaBase + "image\\"

firstImg = m.ImportImage(imgBase + "apple.gif");
secondImg = m.ImportImage(imgBase + "cherries.gif");

ExImg = new ActiveXObject( "DirectAnimation.DAImage" );
ExImg.Init( m.Until( firstImg, m.LeftButtonDown, m.Until( secondImg, m.RightButtonDown, ExImg ) ) );

DAControl.Image = m.Overlay( ExImg, m.SolidColorImage( m.Black ) );

DAControl.Start();