Code: Select all
hBitmap := LoadBitmap( GetResources(), 'cerrar' )
DrawBitmap( hDc, hBitmap, 8, aRect[ 4 ] - 45, 37, 20 )
Saludos
Code: Select all
hBitmap := LoadBitmap( GetResources(), 'cerrar' )
DrawBitmap( hDc, hBitmap, 8, aRect[ 4 ] - 45, 37, 20 )
Code: Select all
DEFINE DIALOG ....
DEFINE GET ....
...
oDlg:bPainted := { |hDc| ( PalbmpLoad(hDc,10,10,hBmp,hPal), .... ) }
oDlg:bLClicked := { |nRow,nCol| AccionBmp(nRow,nCol,hBmp) }
ACTIVATE DIALOG ...
Suoponiendo que el Bitmap esta en las coordenadas 10,10 y mide 200X300 (AnchoXAlto)
FUNCTION AccionBmp(nRow,nCol,hBmp)
IF nRow > 9 .AND. nRow < 311 .AND. nCol > 9 .AND. nCol < 211
...
HE PINCHADO SOBRE EL BITMAP
Y REALIZO LA ACCION PREVISTA
...
ENDIF
...
RETURN NIL