Print Page | Close Window

CXTPCalendarDayView with disable horizontal scroll

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=14997
Printed Date: 16 May 2024 at 5:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPCalendarDayView with disable horizontal scroll
Posted By: zitz
Subject: CXTPCalendarDayView with disable horizontal scroll
Date Posted: 18 August 2009 at 7:31am
Updated from Xtreme ToolkitPro v13.0.0
If i set
GetCalendarCtrl().GetDayView()->EnableHScroll( FALSE );

Vertical scroll is not work!!! Why???
How to fix????


-------------
Xtreme ToolkitPro v13.1.0, static, VC++6



Replies:
Posted By: zitz
Date Posted: 18 August 2009 at 8:10am
+ debug + mouseweel = crash



-------------
Xtreme ToolkitPro v13.1.0, static, VC++6


Posted By: mdoubson
Date Posted: 18 August 2009 at 10:49pm
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 - https://forum.codejock.com/uploads/DemoVersion/CalendarControlMFCUpdated.rar
 
You can also run https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar


-------------
Mark Doubson, Ph.D.


Posted By: zitz
Date Posted: 19 August 2009 at 4:26am
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


Posted By: mdoubson
Date Posted: 19 August 2009 at 4:42am
Use proper settings e.g.

CXTPCalendarDayView* pDayView = DYNAMIC_DOWNCAST(CXTPCalendarDayView, GetCalendarCtrl().GetDayView() );

if (pDayView) { pDayView->SetMinColumnWidth(200); }

and you will have horizontal scroll


-------------
Mark Doubson, Ph.D.


Posted By: zitz
Date Posted: 19 August 2009 at 6:38am
Originally posted by mdoubson mdoubson wrote:

Use proper settings e.g.
and you will have horizontal scroll

I no need horizontal scroll, i disabled it. I need VERTICAL scroll.
Please see attached video: uploads/20090819_063729_calendar2.zip - uploads/20090819_063729_calendar2.zip



-------------
Xtreme ToolkitPro v13.1.0, static, VC++6


Posted By: mdoubson
Date Posted: 19 August 2009 at 6:49am
Check your Topic title please

-------------
Mark Doubson, Ph.D.


Posted By: zitz
Date Posted: 19 August 2009 at 6:52am
Sorry, bad English :(
Correct title


-------------
Xtreme ToolkitPro v13.1.0, static, VC++6


Posted By: mdoubson
Date Posted: 19 August 2009 at 7:19am
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 - https://forum.codejock.com/uploads/DemoVersion/CalendarControlMFCUpdated.rar
 
I also updated https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.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).


-------------
Mark Doubson, Ph.D.


Posted By: zitz
Date Posted: 19 August 2009 at 7:35am
Originally posted by mdoubson mdoubson wrote:

Of course I don't disable HScroll - why you? - it auto-set depend on size

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


Posted By: mdoubson
Date Posted: 19 August 2009 at 7:36am
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;

}



-------------
Mark Doubson, Ph.D.


Posted By: mdoubson
Date Posted: 19 August 2009 at 7:40am

you don't read my last post?



-------------
Mark Doubson, Ph.D.


Posted By: zitz
Date Posted: 19 August 2009 at 8:28am
Originally posted by mdoubson mdoubson wrote:


Hey - this is typo in this code - nobody complain - thanks for catch:
BOOL CXTPCalendarDayView::GetScrollBarInfoV(SCROLLINFO* pSI)
{
if (m_bScrollH_Disabled)
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;
}


Yes, this solution to my problem with vertical scroll. Thank you!


-------------
Xtreme ToolkitPro v13.1.0, static, VC++6


Posted By: mdoubson
Date Posted: 21 August 2009 at 12:09am
Good - now you can check coming 13.2 release - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar

-------------
Mark Doubson, Ph.D.



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