FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index All products support Ancora problemi cambiando la get picture at runtime
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM

Ancora problemi cambiando la get picture at runtime

Posted: Thu Feb 12, 2009 09: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Ancora problemi cambiando la get picture at runtime

Posted: Thu Feb 12, 2009 09:31 PM
// 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
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM

Re: Ancora problemi cambiando la get picture at runtime

Posted: Sun Feb 15, 2009 01:24 PM

Ok. Grazie.

Best Regards,



Marco Turco

SOFTWARE XP LLP

Continue the discussion