Page 1 of 1

change xImage on line

Posted: Fri Oct 02, 2020 9:04 am
by Silvio.Falconi
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 ?

Image


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]:bChange:={||(oBmp:SetSource('CLIP_ON') ,oBmp:refresh())}
Next

return nil


Second Problem How I can reload the xmage ? Itried with reload,Setsource,LoadImage