change xImage on line

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

change xImage on line

Post 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
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply