![]() |
CXTPCalendarDayView with disable horizontal scroll |
Post Reply ![]() |
Author | ||
zitz ![]() Senior Member ![]() Joined: 05 October 2008 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() Posted: 18 August 2009 at 7:31am |
|
Updated from Xtreme ToolkitPro v13.0.0
If i set
Vertical scroll is not work!!! Why??? How to fix???? |
||
Xtreme ToolkitPro v13.1.0, static, VC++6
|
||
![]() |
||
zitz ![]() Senior Member ![]() Joined: 05 October 2008 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() |
|
+ debug + mouseweel = crash
![]() |
||
Xtreme ToolkitPro v13.1.0, static, VC++6
|
||
![]() |
||
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
|
Guess you are working with very old source and not look in forum posts
get and rebuild your dll and app - https://forum.codejock.com/uploads/DemoVersion/CalendarControlMFCUpdated.rar
|
||
![]() |
||
zitz ![]() Senior Member ![]() Joined: 05 October 2008 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() |
|
1. I download sources from store.codejock.com, where also can I get the latest source code?
2. I add patch, but my problem is not solved, see my first and second post. |
||
Xtreme ToolkitPro v13.1.0, static, VC++6
|
||
![]() |
||
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
|
Use proper settings e.g.
CXTPCalendarDayView* pDayView = DYNAMIC_DOWNCAST(CXTPCalendarDayView, GetCalendarCtrl().GetDayView() ); if (pDayView) { pDayView->SetMinColumnWidth(200); } and you will have horizontal scroll |
||
![]() |
||
zitz ![]() Senior Member ![]() Joined: 05 October 2008 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() |
|
I no need horizontal scroll, i disabled it. I need VERTICAL scroll. Please see attached video:uploads/20090819_063729_calendar2.zip |
||
Xtreme ToolkitPro v13.1.0, static, VC++6
|
||
![]() |
||
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
|
Check your Topic title please
|
||
![]() |
||
zitz ![]() Senior Member ![]() Joined: 05 October 2008 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() |
|
Sorry, bad English :(
Correct title |
||
Xtreme ToolkitPro v13.1.0, static, VC++6
|
||
![]() |
||
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
|
I modify code - now it safe for preview scrolling even in continue mode
Please get and rebuild your dll and app - https://forum.codejock.com/uploads/DemoVersion/CalendarControlMFCUpdated.rar
Can't confirm DayView mode VScroll (or MouseWheel) - both works (Of course I don't disable HScroll - why you? - it auto-set depend on size).
|
||
![]() |
||
zitz ![]() Senior Member ![]() Joined: 05 October 2008 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() |
|
Please try: GetCalendarCtrl().GetDayView()->EnableHScroll( FALSE );And after it you can see bugs!!!! I disable HScroll because: 1. i dont want to see it 2. when i push left or right button date change, if HScroll = false, than does not change. I dont want change date! 3. For what you add such an option that if it is set then all will not work correctly? |
||
Xtreme ToolkitPro v13.1.0, static, VC++6
|
||
![]() |
||
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
|
Hey - this is typo in this code - nobody complain - thanks for catch:
BOOL CXTPCalendarDayView::GetScrollBarInfoV(SCROLLINFO* pSI) { if (m_bScrollH_Disabled) //??? HERE - just kill this lines! return FALSE;ASSERT(pSI); if (!pSI || m_bScrollV_Disabled) return FALSE;pSI->nPos = m_LayoutX.m_nTopRow; pSI->nMax = m_LayoutX.m_nRowCount - 1; pSI->nPage = m_LayoutX.m_nVisibleRowCount; return m_LayoutX.m_nVisibleRowCount != m_LayoutX.m_nRowCount;} |
||
![]() |
||
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
|
you don't read my last post? |
||
![]() |
||
zitz ![]() Senior Member ![]() Joined: 05 October 2008 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() |
|
Yes, this solution to my problem with vertical scroll. Thank you! |
||
Xtreme ToolkitPro v13.1.0, static, VC++6
|
||
![]() |
||
mdoubson ![]() Senior Member ![]() ![]() Joined: 17 November 2008 Status: Offline Points: 1705 |
![]() ![]() ![]() ![]() ![]() |
|
Good - now you can check coming 13.2 release - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar
|
||
![]() |
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 |