[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
oWin:SayBitMap(<nRow>, <nCol>, <coBitMap>, <nWidth>, <nHeight>) -> <nil>
------------------------------------------------------------------------------
PARAMETER:
<nRow> The row where <coBitmap> will be displayed. This row is
relative to the top of the window, and is measured in pixels
<nCol> The col where <coBitmap> will be displayed. This col is
relative to the left side of the window, measured in pixel.
<coBitmap> is either a string with the filename of the bitmap or an
TBitmap - object, created by (RE)DEFINE BITMAP.
<nWidth> is the horizontal paintsize of the bitmap
<nHeight> is the vertical paintsize of the bitmap
DESCRIPTION:
This method allows the programmer to draw a bitmap to the client area of a
window.
A drawback of this method is however that the bitmap is 'painted' directly
on the window, which means that as soon as the window is repainted the
drawing will vanish. If you want to place the bitmap permanently on the
window then you have to use this method in conjunction with the ON PAINT
clause:
+-------------------------------------------------------------+
| /* Paint a bitmap to the Window */ |
| ACTIVATE WINDOW oWin ; |
| ON PAINT oWin:SayBitMap( 10, 15, "MyBitmap.bmp" ) |
+-------------------------------------------------------------+
See Also:
ACTIVATE WINDOW
DEFINE BITMAP
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson