Print Page | Close Window

Navigator Issues

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=5517
Printed Date: 18 September 2024 at 10:44pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Navigator Issues
Posted By: LittleJK
Subject: Navigator Issues
Date 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



Replies:
Posted By: sserge
Date 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


Posted By: LittleJK
Date 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


Posted By: sserge
Date 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


Posted By: LittleJK
Date 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


Posted By: LittleJK
Date 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!    



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net