Copyright © 2002-2009 MultiMedia Soft 
Return to index  
 
PicturePressed property 
 
Remarks
The pathname or HTTP URL of the picture or animation file displayed on a button in pressed state. 
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 abmGetPicturePressed
HWND hWndBtn 
); 
 
void abmSetPicturePressed
HWND hWndBtn
LPCTSTR strFilename 
); 
 
Parameters
Description
hWndBtn
Windows handle associated to the button.
strFilename
String containing the picture pathname.
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. 
If using the abmGetPicturePressed 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: 
 
 
 
 
 
 
 
 
 
 
 
Copyright © 2002-2009 MultiMedia Soft 
Return to index