Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Navigator Issues
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Navigator Issues

 Post Reply Post Reply
Author
Message
LittleJK View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 April 2006
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote LittleJK Quote  Post ReplyReply Direct Link To This Post Topic: Navigator Issues
    Posted: 14 November 2006 at 5:17pm
Hi we are trying use the navigator functions in the Report Control... currently when we set the Report Control to allow edit... when using the navigator.moveUp and navigator.moveDown with the keydown event, it skips every 2 to 3 rows at a time.

There has to be something stupid going on.

Thanks
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: 15 November 2006 at 4:25am
Hi,

Keydown event is processing navigator buttons by itself. And when you're trying to move a row up or down, it's moved 2 times.

To avoid this behavior use PreviewKeyDown and cancel default key processing. Example:

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


--
WBR,
Serge
Back to Top
LittleJK View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 April 2006
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote LittleJK Quote  Post ReplyReply Direct Link To This Post Posted: 15 November 2006 at 11:25am
Thanks,
Quick Question?

We have the FocusSubItems set to true and the columns we are editing have the SelectTextOnEdit to true too... we are running into an issue that when using the keys to navigate from cell to cell, it does not act the same if we clicked into the cell.... Such as it does not highlight the entire text when you click into the cell, it just moves the cursor to the end. Is there a way to select the text? we were using sendkey {end} +{home}  but I'm finding that method is not totally correct.

Thanks again
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: 15 November 2006 at 12:14pm
If SelectTextOnEdit is True, then all that you need is call wndReportControl.EditItem for the corresponding item, and it will be selected automatically.

--
WBR,
Serge
Back to Top
LittleJK View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 April 2006
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote LittleJK Quote  Post ReplyReply Direct Link To This Post Posted: 15 November 2006 at 1:48pm
thanks,
I'm just confused how to call it for an entire column because I'm geting an error on trying to set if for all the rows in a specific column... there are no real examples in the help file.

thanks
Back to Top
LittleJK View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 April 2006
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote LittleJK Quote  Post ReplyReply Direct Link To This Post Posted: 15 November 2006 at 2:09pm
Nevermind... I found one of your old posts about it in another thread.. thanks for all the help!    
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.203 seconds.