LISTBOX using ENTER ?

LISTBOX using ENTER ?

Postby Jimmy » Fri Nov 11, 2022 11:45 am

hi,

i can use
Code: Select all  Expand view
ON DBLCLICK

but how to "activate" using ENTER Key :?:

do i need to use bKeyDown Codeblock Slot :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: LISTBOX using ENTER ?

Postby Marc Venken » 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.04 with Harbour
User avatar
Marc Venken
 
Posts: 1434
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: LISTBOX using ENTER ?

Postby Jimmy » Fri Nov 11, 2022 6: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
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Re: LISTBOX using ENTER ?

Postby Jimmy » Fri Nov 11, 2022 9: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
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 97 guests