Print Page | Close Window

Rc Problem...

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=16025
Printed Date: 15 November 2024 at 9:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Rc Problem...
Posted By: mozaheb
Subject: Rc Problem...
Date Posted: 17 January 2010 at 3:46am
hi All

Please help me how check this column by keyboard?

I don't want use mouse and when insert this task checkable this column.

Thanks



-------------
________________________________
http://www.amootco.com
Amoot Data Processing



Replies:
Posted By: mozaheb
Date Posted: 18 January 2010 at 8:39am
Anybody there? :(

-------------
________________________________
http://www.amootco.com
Amoot Data Processing


Posted By: hjmueller
Date Posted: 18 January 2010 at 1:09pm
You can Do this by checking the state in the Keydown Event:
(in my example mGrid ist the ReportControl and mEditRow ist the FocusedRow)
 
Private Sub mGrid_KeyDown(KeyCode As Integer, Shift As Integer)
On Error Resume Next
   If Shift = 0 Then
      Select Case KeyCode
     
      Case vbKeySpace
         If mEditMode Then
            If mEditRow.Record(mEditIndex).HasCheckbox Then
               mEditRow.Record(mEditIndex).Checked = Not mEditRow.Record(mEditIndex).Checked
               mEditRow.Record(mEditIndex).Value = mEditRow.Record(mEditIndex).Checked
            End If
         End If
      end Select         
   End If
End Sub



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