|
Copyright © 2002-2009 MultiMedia Soft
Return to index
|
|
Remarks
|
The pathname or HTTP URL of the picture or animation file displayed on the button.
It is possible to use bitmap files (extension BMP, GIF, JPG, ICO, TIF, or PNG) or animation files (extension GIF or AVI).
If the filename is an HTTP URL it is possible to use the proprietary compressed format AMZ.
If you need to download the file from an FTP URL it is possible to use the abmSetPictureFromNet function.
To render a picture color transparent use the PictureTranspColor property.
To make the picture background transparent use the PictureTranspMode property.
| ||||||
|
Get / Set functions
|
BSTR abmGetPicture (
HWND hWndBtn
);
void abmSetPicture (
HWND hWndBtn,
LPCTSTR strFilename
);
| ||||||
|
Notes
|
If you want to use AVI files, keep in mind that only simple AVI animations can be played. Specifically, the animations to be played by this control must meet the following requirements:
· There must be exactly one video stream and it must have at least one frame.
· There can be at most two streams in the file (typically the other stream, if present, is an audio stream, although the control ignores audio information).
· No palette changes are allowed in the video stream.
f using the abmGetPicture function from within Visual Basic 6, remember to convert the returned value from UNICODE using the StrConv function and its related vbFromUnicode option, as in the sample below:
|