Hi all,
I'm trying to change a get picture at runtime but unsuccessfully.
In this self-contained sample I have a get initialized with a euro picture (9999.99),
then pressing the "Lire picture" button I would like to change the picture in the 999999 format but it doesn't change.
Any suggest ?
Thanks in advance.
function Main()
local oDlg, oGet, oBtn
nTest:=0
cPicture:="9999.99"
DEFINE DIALOG oDlg TITLE "A simple GET" ;
FROM 2, 2 TO 13, 40
@ 10, 10 GET oTEST1 VAR nTest SIZE 120, 13 pixel OF oDlg RIGHT PICTURE cPicture
@ 3, 4 BUTTON oBtn PROMPT "Euro picture" SIZE 45, 12 OF oDlg ;
ACTION ( cPicture:="9999.99", oTest1:Refresh())
@ 3, 14 BUTTON "Lire picture" SIZE 45, 12 OF oDlg ;
ACTION ( cPicture:="999999", oTest1:Refresh())
ACTIVATE DIALOG oDlg CENTERED
return nil