#include "FiveTouch.ch"
function Main()
local oDlg, oGet1, cTest
local oBtnOk, oBtnCancel
DEFINE DIALOG oDlg
@ 20, 20 GET oGet1 VAR cTest OF oDlg SIZE 100, 20
oGet1:Connect( "textEdited(QString)", { | u | MsgInfo( u ) } )
@ 200, 90 BUTTON oBtnOk PROMPT "Ok" OF oDlg ;
ACTION MsgInfo( "Ok!" )
@ 200, 220 BUTTON oBtnCancel PROMPT "Cancel" OF oDlg ;
ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED
return nil
#include "FiveTouch.ch"
function Main()
local oDlg, oGet1, cTest
local oBtnOk, oBtnCancel
DEFINE DIALOG oDlg
@ 20, 20 GET oGet1 VAR cTest OF oDlg SIZE 100, 20
oGet1:Connect( "editingFinished()", { || MsgInfo( "VALIDar desde aqui" ) } )
@ 200, 90 BUTTON oBtnOk PROMPT "Ok" OF oDlg ;
ACTION MsgInfo( "Ok!" )
@ 200, 220 BUTTON oBtnCancel PROMPT "Cancel" OF oDlg ;
ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED
return nil
Users browsing this forum: No registered users and 4 guests