If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Implementation of Tab key on list view

Hi all,
I have a list view created using resource editor,I set Extended style such as LVS_EX_GRIDLINES & LVS_EX_FULLROWSELECT,So my List view looking like a spread sheet.Editing of cell done by Double clicking event,Now I want to add Tab feature(Switching Focus from one cell to next.)Is there any winAPI is there for Tab feature.I tryed to capture VK_TAB under LVN_KEYDOWN,But i am not reciving any notification for that event

Re: Implementation of Tab key on list view

A listview (SysListView32) control having LVS_REPORT and LVS_EX_GRIDLINES styles may look like a spreadsheet/grid control but actually it's NOT.
By default, it doesn't allow selecting/editing a particular "cell" as you probably expect. Setting the LVS_EDITLABELS style, allows only editing of the "cells" in the first column.

However, you can resolve that issue either by customizing the behavior of the default "in-place" edit control or using your own in-place edit.
In both cases, if you want to change the behavior when the user presses the TAB key, as well as Enter and arrow keys, you have (as Victor already suggested) to basically:

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.