Report Control Scroll Problem |
Post Reply |
Author | |
brianh
Groupie Joined: 30 April 2004 Location: United Kingdom Status: Offline Points: 83 |
Post Options
Thanks(0)
Posted: 10 January 2005 at 3:50am |
Hi, if you turn off automatic column sizing (so it doesn't automatically resize columns to fit window) then resize window until the horizontal scroll bar appears you can then drag the scrollbar "thumb" and you can click on the scrollbar arrows to scroll the window, but if you click on the scroll bar itself nothing happens! This behaviour can been seen in the report control sample program too, is this a bug, can it be fixed? Thanks. Edited by brianh |
|
Flamer
Newbie Joined: 15 January 2005 Location: Netherlands Status: Offline Points: 10 |
Post Options
Thanks(0)
|
I notice the same 'bug'. The vertical scrollbar works perfectly!!! Can this be solved in the next release??? ...Would be great!!!!
|
|
brianh
Groupie Joined: 30 April 2004 Location: United Kingdom Status: Offline Points: 83 |
Post Options
Thanks(0)
|
I reported this as a bug and was told it will be fixed in the next release and given the code below to fix the problem in the mean time: Yes, it was bug,, we fixed it already. void CXTPReportControl::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) { if (pScrollBar != NULL) { CWnd::OnHScroll(nSBCode, nPos, pScrollBar); return; } int nCurPos = m_nLeftOffset; // decide what to do for each diffrent scroll event switch(nSBCode) { case SB_TOP: nCurPos = 0; break; case SB_BOTTOM: nCurPos = GetScrollLimit(SB_HORZ); break; case SB_LINEUP: nCurPos = max(nCurPos - 1, 0); break; case SB_LINEDOWN: nCurPos = min(nCurPos + 1, GetScrollLimit(SB_HORZ)); break; case SB_PAGEUP: nCurPos = max(nCurPos - m_rcReportArea.Width(), 0); break; case SB_PAGEDOWN: nCurPos = min(nCurPos + m_rcReportArea.Width(), GetScrollLimit(SB_HORZ)); break; case SB_THUMBTRACK: case SB_THUMBPOSITION: nCurPos = nPos; break; } SetLeftOffset(nCurPos); CWnd::OnHScroll(nSBCode, nPos, pScrollBar); } You can replace this member and rebuild dll/lib |
|
Flamer
Newbie Joined: 15 January 2005 Location: Netherlands Status: Offline Points: 10 |
Post Options
Thanks(0)
|
Ok, thx for the feedback!
|
|
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 |