change xImage on line

change xImage on line

Postby Silvio.Falconi » Fri Oct 02, 2020 9: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 ?

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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6770
Joined: Thu Oct 18, 2012 7:17 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Silvio.Falconi and 93 guests