![]() |
Report Control and horizontal scrolling |
Post Reply ![]() |
Author | |
sunbeam ![]() Newbie ![]() ![]() Joined: 20 March 2007 Location: Belgium Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() Posted: 15 May 2008 at 5:41am |
Hi,
I have a report control with some 30 fixed columns. When i press the up button of my keyboard, the report control scrolls one row up. When pressing down it goes down, as i expect. But when pressing right, the report control is positioned one row down. When i press left, it is repositioned one row up.
Isn't it possible to change the report control in a way that the arrow left key is scrolling horizontal to the left and vice versa ?
Kind regards and already many thanx.
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Do you mean scroll column left/right?
Set wndReportControl.FocusSubItems = True will allow you to use the left/right arrow keys to navigate in a row.
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
sunbeam ![]() Newbie ![]() ![]() Joined: 20 March 2007 Location: Belgium Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
Okay. That is more or less the thing i need. But i see you have a selection box now for the column that i have selected. I only have a row select. Is it somehow possible to suppress this selection box now?
Already many thanx!
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Hi,
The only thing you can do is:
wndReportControl.SelectionEnable = False
This will hide the selection and you have only the RowFocus when settting wndReportControl.ShowRowFocus = True of course
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
sunbeam ![]() Newbie ![]() ![]() Joined: 20 March 2007 Location: Belgium Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
Thanx, i think i can find a solution starting from the things you gave me.
Kind regards and many thanx!
|
|
![]() |
|
braian87b ![]() Groupie ![]() Joined: 01 April 2008 Location: Argentina Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
Im sorry, this has no relation with my question but: what is the purpose or usage for those properties?... SelectionEnable and ShowRowFocus...
Thanks in advance!
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Suppose you have 50 columns. You set AutoSizeColumns = false in order to have a decent view of the report. Now, if you want to navigate the columns in the report you have to set FocusSubItems = true. The selection of the row will look like the first picture (the selected subitem is white and not blue). SelectionEnabled = false will show only the FocusRect (ShowFocusRect = true) (see second picture) Now you will see which row is selected and you can navigate the columns with left and right key
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
braian87b ![]() Groupie ![]() Joined: 01 April 2008 Location: Argentina Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
you are a genius explaining things like this
thanks!
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Tell it to my boss
![]() Pictures will always make things easier to explain. You have to make a few screenshots and that's it. Yes, it takes about 2 minutes more and ??? If you didn't understand it, I would have been busy (maybe 3 minutes) with the reply of your second question
![]() |
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
Mossy ![]() Newbie ![]() Joined: 16 October 2008 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
hi this is great left rihgt and up down but what do i do to stop the children of a record from collapsing or expanding when going left right.
please help |
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Hi,
If you are desperate:
Private Sub wndReportControl_PreviewKeyDown(KeyCode As Integer, ByVal Shift As Integer, Cancel As Boolean)
Select Case KeyCode Case 37, 39 If wndReportControl.FocusedRow.GroupRow Then Cancel = True End Select End Sub |
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
Mossy ![]() Newbie ![]() Joined: 16 October 2008 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Thankyou
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |