Dear Dutch,
the position work well,
thank you.
> I've changed all BTNGET to original GET..ACTION and working without problem
I have a problem, test this (with BTNGET work well):
Code: Select all
FUNCTION Main()
LOCAL o := MyClass():New()
RETURN Nil
CLASS MyClass
DATA dData
METHOD New() CONSTRUCTOR
ENDCLASS
METHOD New() CLASS MyClass
LOCAL oGet4, lWhen := .T., oDlg
::dData := Date()
DEFINE DIALOG oDlg
@ 1, 1 GET oGet4 VAR ::dData OF oDlg PICTURE "@D"; // RESOURCE "B_Cld"
SIZE 50, 12 ;
ACTION (::dData:=Date()-10)
ACTIVATE DIALOG oDlg
RETURN Self
return an error when i click button.
This is the error:
Descrizione: Warning BASE/1005 Message not found: TGET:_DDATA
Args:
Stack Calls
===========
Called from: source\rtl\tobject.prg => TGET:ERROR(172)
Called from: source\rtl\tobject.prg => TGET:MSGNOTFOUND(205)
Called from: source\rtl\tobject.prg => TGET:_DDATA(0)
Called from: SRC-WIN\TEst\Source\Test.prg => (b)MYCLASS:NEW(82)
Called from: prg\TGET.prg => (b)TGET:CREATEBUTTON(465)
Called from: prg\BUTTON.prg => TBUTTONBMP:CLICK(177)
Called from: prg\CONTROL.prg => TBUTTON:HANDLEEVENT(1412)
Called from: prg\BUTTONB.prg => TBUTTONBMP:HANDLEEVENT(168)
Called from: prg\WINDOW.prg => _FWH(3345)
Called from: => SENDMESSAGE(0)
Called from: prg\WINDOW.prg => TGET:COMMAND(1014)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: prg\CONTROL.prg => TCONTROL:HANDLEEVENT(1454)
Called from: prg\TGET.prg => TGET:HANDLEEVENT(561)
Called from: prg\WINDOW.prg => _FWH(3345)
Called from: => DIALOGBOXINDIRECT(0)
Called from: prg\DIALOG.prg => TDIALOG:ACTIVATE(273)
Called from: SRC-WIN\TEst\Source\Test.prg => MYCLASS:NEW(84)
Called from: SRC-WIN\TEst\Source\Test.prg => MAIN(60)
There is a workaround?
Is possible to insert also the resources?
Many thanks in advance.