FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour LISTBOX using ENTER ?
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
LISTBOX using ENTER ?
Posted: Fri Nov 11, 2022 11:45 AM
hi,

i can use
Code (fw): Select all Collapse
ON DBLCLICK
but how to "activate" using ENTER Key :?:

do i need to use bKeyDown Codeblock Slot :?:
greeting,

Jimmy
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: LISTBOX using ENTER ?
Posted: Fri Nov 11, 2022 12:06 PM

:bKeyChar := { |nKey| If( nKey == VK_RETURN, ;

           ( nSelect := oBrwL:oCol(1):value, oDlg:End() ), nil ) }
Marc Venken

Using: FWH 23.08 with Harbour
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: LISTBOX using ENTER ?
Posted: Fri Nov 11, 2022 06:32 PM
hi Marc,

Ok, understand
so i have to write a Codeblock whenever use of Keyboard is not implement

p.s. what is the Difference of bKeyChar vs. bKeyDown :?:
greeting,

Jimmy
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: LISTBOX using ENTER ?
Posted: Fri Nov 11, 2022 09:28 PM
hi Antoni,

aha :idea:

so i have use wrong Callback Slot as WM_KEYDOWN message does not support ALT Key ( Bit 29 )
greeting,

Jimmy

Continue the discussion