Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Is it possible to tab between cells?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Is it possible to tab between cells?

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


Joined: 07 May 2006
Location: United Kingdom
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote RobinG Quote  Post ReplyReply Direct Link To This Post Topic: Is it possible to tab between cells?
    Posted: 29 November 2006 at 9:03am
I have a reportcontrol which I'm using as an editable grid - Is it possible to use the tab key to advance onto the next "cell"?
 
Prior to the edit begining it is possible to intercept key strokes via KeyDown() events, but once the edit begins I cant seem to find a way of getting notifications...
 
Any ideas?
 
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: 01 December 2006 at 5:21pm
Something like:

Private Sub wndReportControl_PreviewKeyDown(KeyCode As Integer, ByVal Shift As Integer, Cancel As Boolean)
    If KeyCode = vbKeyTab Then
        wndReportControl.Navigator.MoveRight
    End If
End Sub

should help...

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


Joined: 07 May 2006
Location: United Kingdom
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote RobinG Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2006 at 11:16am
Serge,
 
Thanks for the tip!
Back to Top
RobinG View Drop Down
Groupie
Groupie


Joined: 07 May 2006
Location: United Kingdom
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote RobinG Quote  Post ReplyReply Direct Link To This Post Posted: 04 December 2006 at 5:07am
Just as a followup.... I was using 9.81 which did not have the KeyDownPreview event, so i finally I made the switch to 10.3.1
 
Once using 10.3.1, I found that pressing the tab key never caused the event to fire - the report control just lost focus when it was pressed.
 
I managed to get the event to fire for TAB by setting the "TabStop" property for the other controls on my form to false (I only had 2 so no problem there!) - now I can detect the tab key and move to the next cell.
 
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.