by dutch » Sun Jul 28, 2013 9:37 am
Dear Rick,
I test with BmpFile and it works well. I'm not quite sure, is it what you want.
- Code: Select all Expand view
function Main()
#include 'Fivewin.ch'
local oBru, oDlg, oBtn
local lYes := .T.
DEFINE BRUSH oBru FILENAME "../bitmaps/Backgrnd/beach.bmp"
DEFINE DIALOG oDlg SIZE 400, 200 BRUSH oBru TRANSPARENT
@ 2, 2 SAY "Hello" OF oDlg
oDlg:aControls[ 1 ]:lTransparent = .t.
@ 70, 80 BTNBMP oBtn FILENAME "../bitmaps/yes.bmp" ;
SIZE 50, 30 OF oDlg NOBORDER ACTION ChangeBmp( oBtn, @lYes) // MsgInfo( "click" )
oBtn:lTransparent = .T.
ACTIVATE DIALOG oDlg CENTERED
return nil
//----------------------------------------------------------------------------//
Function ChangeBmp( oBtn, lYes )
lYes := !lYes
if lYes
oBtn:LoadBitmaps( ,, "../bitmaps/yes.bmp" )
else
oBtn:LoadBitmaps( ,, "../bitmaps/no.bmp" )
end
oBtn:Refresh()
return nil
Regards,
Dutch
FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)