PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Andrew Lindsay on February 04, 2011, 11:15:54 PM

Title: Listviews and Focus Highlight and Keyboard Use
Post by: Andrew Lindsay on February 04, 2011, 11:15:54 PM
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
Title: Re: Listviews and Focus Highlight and Keyboard Use
Post by: Klaas Holland on February 05, 2011, 05:54:25 AM
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