• Welcome to PlanetSquires Forums.
 

Listviews and Focus Highlight and Keyboard Use

Started by Andrew Lindsay, February 04, 2011, 10:45:54 PM

Previous topic - Next topic

Andrew Lindsay

Guys,

I have a dialog box that I am working on at the moment which consists of a number of edit boxes and combo boxes.  I have the keyboard navigation down pretty much OK with the exception of the list view.

When I tab from the previous control, the list view is selected, however there is no visible effect shown on the screen, such as the first (or the last selected) row being highlighted.  How do I set the row selection to visible when I ge focus?

Any asistance would be appreciated.

Regards

Andrew

Klaas Holland

Andrew

You must have at least 1 line in the Listview Then

        FF_ListView_SetSelectedItem HWND_FORMT1_LISTVIEW1, 0
        FF_Control_SetFocus HWND_FORMT1_LISTVIEW1

This should be the first line

For more complicated things about Listview study this Listview Example.

http://www.planetsquires.com/protect/forum/index.php?topic=2787.msg20859;topicseen#msg20859

Regards

Klaas