Using Stand-Alone Ribbonbar-Buttons.

Using Stand-Alone Ribbonbar-Buttons.

Postby ukoenig » Fri Oct 02, 2009 3:28 pm

Hello,

It works, placing the red part on top of the Alpha-Bmp,
using a Button from Ribbonbar ...

Image

...
...
//The Button comes from Ribbonbar :
@ 160, 728 RBBTN oBmp OF oWnd BITMAP "Red.BMP" ;
SIZE 40, 40 PROMPT "" TOP TRANSPARENT ;
ACTION MsgAlert( "Red Button clicked", "Attention" )

...
...
// Background-Image and Alpha-Blended-BMP on Top
// ----------------------------------------------------------
ACTIVATE WINDOW oWnd MAXIMIZED ;
ON PAINT ( DRAWBITMAP( hdc, oBMP1:hbitmap, 0, 0,;
nWidth, nHeight ), W_ALPHA( oWnd, hDC, "Ampel.bmp", 620, 120 ) )
RETURN NIL
-----------------
FUNCTION W_ALPHA( oWnd, hDC, cFile, nTop, nLeft )
LOCAL oImage
DEFINE BITMAP oImage FILENAME cFile
ABPaint( hDC, nTop, nLeft, oImage:hBitmap, 220 )
RETURN NIL

Best Regards
Uwe :shock:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests