Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Key Press on ReportControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Key Press on ReportControl

 Post Reply Post Reply
Author
Message
IDBG View Drop Down
Groupie
Groupie


Joined: 16 May 2006
Location: United States
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote IDBG Quote  Post ReplyReply Direct Link To This Post Topic: Key Press on ReportControl
    Posted: 11 October 2006 at 3:13am
Hi!
 
Is it possible to implement the following:
 
When a user presses a key, say "D", the report control scrolls to the first row that starts with D based on the current sorting.
 
It would be great to be able to implement this.
 
Thanks!
Mir
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 11 October 2006 at 4:30pm
Well, you'l have to implement this by yourself. Something like below:

Private Sub wndReportControl_KeyDown(KeyCode As Integer, Shift As Integer)

    If KeyCode >= vbKeyA And KeyCode <= vbKeyZ Then
        ' iterate all Rows of the wndReportControl
        '' get Row's Record and iterate all Record Items
        ''' Find whether pressed character does exist in Item's string
        '''' If so, set FocusedRow to currently iterated Row
    End If
End Sub


--
WBR,
Serge
Back to Top
IDBG View Drop Down
Groupie
Groupie


Joined: 16 May 2006
Location: United States
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote IDBG Quote  Post ReplyReply Direct Link To This Post Posted: 14 October 2006 at 5:58am
That worked!! 
 
Thanks!!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.