VK_RETURN handling in Tree class
Posted: Fri Nov 10, 2006 1:07 am
Antonio:
Any idea why the Enter key isn't trapped inside oTree:bKeyDown?
I can handle VK_INSERT, VK_DELETE and others, but VK_RETURN never
gets passed down to ::bKeyDown by the TTreeView class.
I just noticed that TTreeView:HandleEvent() has code pertaining VK_RETURN. I commented it out, but it makes no difference.... the Enter key doesn't get processed
Thanks!
Any idea why the Enter key isn't trapped inside oTree:bKeyDown?
Code: Select all
oTree:bKeyDown := {|nKey,nFlags| ;
if( nKey == VK_RETURN, msginfo("never happens"), ;
if( nKey == VK_SPACE, msginfo("space bar"), nil ) ) }
gets passed down to ::bKeyDown by the TTreeView class.
I just noticed that TTreeView:HandleEvent() has code pertaining VK_RETURN. I commented it out, but it makes no difference.... the Enter key doesn't get processed
Thanks!