FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveTouch FiveTouch events
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
FiveTouch events
Posted: Sat Apr 15, 2017 06:53 AM
As FiveTouch uses Harbour QT library, then you simply do:

oControl:Connect( nEvent, { | uParam | MsgInfo( uParam ) } )

where nEvents is one of these values:
http://doc.qt.io/qt-4.8/qevent.html

Example:
Code (fw): Select all Collapse
#include "FiveTouch.ch"

function Main()

   local oDlg, oBtnOk, oBtnCancel

   DEFINE DIALOG oDlg

   oDlg:Connect( 2, { || MsgInfo( "click" ) } )
   
   @ 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




regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion