Ancora problemi cambiando la get picture at runtime

Moderator: Enrico Maria Giordano

Ancora problemi cambiando la get picture at runtime

Postby Marco Turco » Thu Feb 12, 2009 9:07 pm

Ciao a tutti, ho la necessità di cambiare la picture di una get da euro a lire at runtime.
Il problema è che il cambio avviene ma appena ci clicco sopra con il mouse mi riappare con il precedente formato.
Qualche idea ?

Ecco il codice che evidenzia il problema.
Provate a selezionare "Lire picture". La picture della get cambia ma quando ci clicco sopra torna ad essere nel formato 9999.99



// Testing a GET editing a number

#include "FiveWin.ch"

//----------------------------------------------------------------------------//



function Main()

local oDlg, oBtn, nTest, cPicture, oTest1

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 ( oTest1:oGet:Picture:="9999.99", oTest1:Refresh())

@ 3, 14 BUTTON "Lire picture" SIZE 45, 12 OF oDlg ;
ACTION ( oTest1:oGet:Picture:="999999", oTest1:Refresh())

ACTIVATE DIALOG oDlg CENTERED

return nil
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Ancora problemi cambiando la get picture at runtime

Postby Enrico Maria Giordano » Thu Feb 12, 2009 9:31 pm

Code: Select all  Expand view
// Testing a GET editing a number

#include "FiveWin.ch"

//----------------------------------------------------------------------------//



function Main()

local oDlg, oBtn, nTest, cPicture, oTest1

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 ( oTest1:oGet:Picture:="9999.99", oTest1:cPicture:="9999.99", oTest1:Refresh())

@ 3, 14 BUTTON "Lire picture" SIZE 45, 12 OF oDlg ;
ACTION ( oTest1:oGet:Picture:="999999", oTest1:cPicture:="999999", oTest1:Refresh())

ACTIVATE DIALOG oDlg CENTERED

return nil


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Ancora problemi cambiando la get picture at runtime

Postby Marco Turco » Sun Feb 15, 2009 1:24 pm

Ok. Grazie.
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London


Return to All products support

Who is online

Users browsing this forum: No registered users and 10 guests