PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Listviews and Focus Highlight and Keyboard Use  (Read 512 times)

Andrew Lindsay

  • Junior Member
  • **
  • Posts: 76
Listviews and Focus Highlight and Keyboard Use
« on: February 04, 2011, 10:45: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
Logged

Klaas Holland

  • Junior Member
  • **
  • Posts: 104
  • FF3 User
Re: Listviews and Focus Highlight and Keyboard Use
« Reply #1 on: February 05, 2011, 05:24: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
Logged