DblClick or Enter

DblClick or Enter

Postby Ollie » Thu Jun 07, 2007 8:18 pm

Code: Select all  Expand view
      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)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby EASYSOFT » Thu Jun 07, 2007 9:18 pm

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



Test This

Regards

Oscar
Saludos
Oscar
Fwh 10.4, bcc55
EASYSOFT
 
Posts: 180
Joined: Sat Oct 22, 2005 1:17 pm
Location: Quito - Ecuador


Return to FiveWin for Harbour/xHarbour

Who is online

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