Copyright © 1998-2015 MultiMedia Soft

SetAnimFromNet method

Previous pageReturn to chapter overviewNext page

Remarks

Changes at run-time one of the animations associated with the button pictures, downloading the animation file from the Internet.

Accepted extensions for the file are AVI, GIF or AMZ.

When the download is completed a AnimDLLDone event is generated (also in case of failure).

 

Syntax

Visual Basic

control.SetAnimFromNet (index as enumPictures, URL as string, username as string, password as string) as boolean

 

Visual C++

BOOL control.SetAnimFromNet (long index, LPCTSTR URL, LPCTSTR username, LPCTSTR password);

 

Parameter

Description

 

 

index

Numerical value that represents the index of the picture property to change. Supported values are the following:

Mnemonic constant

Value

Meaning

PICTURE_NORMAL

0

Changes the animation associated with the Picture property

PICTURE_PRESSED

1

Changes the animation associated with the PicturePressed property

PICTURE_MOUSEOVER

2

Changes the animation associated with the PictureMouseOver property

URL

String that specifies the Internet address from which the AVI or GIF file will be loaded; only URLs beginning with ftp: or http: are supported.

username

String that specifies the name of the user to log in. Useful only if the URL is FTP.

password

String that specifies the password to use to log in. Useful only if the URL is FTP.

 

 

Return value

 

Value

Meaning

 

 

FALSE

The operation failed

TRUE

The operation was successful