DblClick or Enter

Post Reply
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

DblClick or Enter

Post by Ollie »

Code: Select all

      REDEFINE COLUMN BROWSE oListBox ID 40 OF oDlg_Search UPDATE ON DblClick somefunc()
When the user Double Clicks on a row somefunc() executes.
I want to execute somefunc() when the users presses ENTER (also)

How do I do it?
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
EASYSOFT
Posts: 129
Joined: Sat Oct 22, 2005 1:17 pm
Location: Quito - Ecuador

Post by EASYSOFT »

oBrwp:bKeyDown := { | nKey | If( nKey == VK_RETURN .or. nKey == VK_ESCAPE, ;
oDlgperb:End(), Nil ), lOk := nKey != VK_ESCAPE }



Test This

Regards

_
Saludos
_
Fwh 10.4, bcc55
Post Reply