FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour change xImage on line
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
change xImage on line
Posted: Fri Oct 02, 2020 09:04 AM
I have a get sample and a Ximage on a dialog
and I wish show anbother image when the get is modified

first problem the image is a ng and is not transparent , why ?




nRow+=2
@ nRow,180 XIMAGE oBmp ;
RESOURCE "CLIP_OFF";
NOBORDER ;
SIZE 30,30 PIXEL;
OF oFolder:adialogs[1] ;
UPDATE

oBmp:bRClicked := {||NIL }
oBmp:ltransparent:=.t.
oBmp:nUserControl :=0

nRow+=10

@ nRow,10 GET aGet[1] VAR CUSTOMER->FIRST OF oFolder:adialogs[1] PIXEL FONT oFont2 SIZE 200, 20

ACTIVATE DIALOG oTabella CENTERED ;
on INIT Refresh_modificato(aGet,oBmp)


static Function Refresh_modificato(aGet,oBmp)

For n=1 to 1
aGet[n]:={||(oBmp:SetSource('CLIP_ON') ,oBmp:refresh())}
Next

return nil


Second Problem How I can reload the xmage ? Itried with reload,Setsource,LoadImage
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion