How to invoke a function on pressing Enter in TwBrowse ?

How to invoke a function on pressing Enter in TwBrowse ?

Postby Milan Mehta » Fri Mar 03, 2006 2:59 pm

Dear All,

How can I invoke a function on Pressing Enter in TwBrowse ? My following code do not seem to be working.

oBrw:bKeyChar = { | nKey | IF (nKey == 13, MyFunc(),) }

Can anybody guide me ?

TIA
Milan.
Milan Mehta
 
Posts: 115
Joined: Mon Oct 17, 2005 4:42 am
Location: India

Re: How to invoke a function on pressing Enter in TwBrowse ?

Postby Enrico Maria Giordano » Fri Mar 03, 2006 3:27 pm

Code: Select all  Expand view
oBrw:bKeyDown  = { | nKey | IF (nKey == 13, MyFunc(),) }


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

Re: How to invoke a function on pressing Enter in TwBrowse ?

Postby Milan Mehta » Sat Mar 04, 2006 4:34 am

Dear Enrico,

Yes it works. Thanks a lot.

With best regards,

Milan.

EnricoMaria wrote:
Code: Select all  Expand view
oBrw:bKeyDown  = { | nKey | IF (nKey == 13, MyFunc(),) }


EMG
Milan Mehta
 
Posts: 115
Joined: Mon Oct 17, 2005 4:42 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 122 guests