Displaying pictures(BMPs, JPEGs)in Dialog Boxes
Keywords: bitmaps
Question:
I need a way to display pictures (BMPs, JPEG’s) in my WBT programs. I know that this may well be impossible, but it would help a lot. Any suggestions?Answer:
- In Winbatch 2002A, a new function was added:
BoxBitmap(box ID, coordinates, filename, stretch-mode) Displays a bitmap in a WinBatch box. (s) "filename" specifies the name of a BMP file. (i) stretch-mode specifies the mode to use when resizing the bitmap.
- For users of Winbatch prior to 2002B, the link below includes some nice sample code, to display bitmaps in Winbatch boxes:
displayBMP.zip
- Alternatively, if you have Windows 98 or later (or MSIE 4.0) you can use our HTML Dialog extender, available for download from the Download page, under "WIL extenders" elsewhere on this web site.
The HTML Extender will support *any* kind of control that you can put in a web page.
Article ID: W12828Filename: Bitmaps in a Dialog Box.txt