Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - CXTPCalendarDayView with disable horizontal scroll
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPCalendarDayView with disable horizontal scroll

 Post Reply Post Reply
Author
Message
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post Topic: CXTPCalendarDayView with disable horizontal scroll
    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
Back to Top
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post Posted: 18 August 2009 at 8:10am
+ debug + mouseweel = crash

Xtreme ToolkitPro v13.1.0, static, VC++6
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 18 August 2009 at 10:49pm
Guess you are working with very old source and not look in forum posts
 
Back to Top
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post 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

Xtreme ToolkitPro v13.1.0, static, VC++6
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2009 at 6:49am
Check your Topic title please
Back to Top
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2009 at 6:52am
Sorry, bad English :(
Correct title
Xtreme ToolkitPro v13.1.0, static, VC++6
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2009 at 7:19am
I modify code - now it safe for preview scrolling even in continue mode
 
 
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).
Back to Top
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post 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;

}

Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2009 at 7:40am

you don't read my last post?

Back to Top
zitz View Drop Down
Senior Member
Senior Member


Joined: 05 October 2008
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote zitz Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 21 August 2009 at 12:09am
Good - now you can check coming 13.2 release - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.