Print Page | Close Window

[Closed] Wish: Time Scrolling

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=3080
Printed Date: 04 May 2024 at 5:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [Closed] Wish: Time Scrolling
Posted By: Simon HB9DRV
Subject: [Closed] Wish: Time Scrolling
Date Posted: 22 October 2005 at 6:19am
It would be nice (but not essential) to have a flag which ensures that the current time is always visible, for example in single day view. If the orange marker scrolls off the visible region then adjust the visible region please. Ideally the current time would be in the middle or top third of the calendar.

Just a wish...

-------------
Simon HB9DRV



Replies:
Posted By: sserge
Date Posted: 24 October 2005 at 1:50pm
Hi,

Really, it could be implemented or could not, but I hope calendar has enough methods which allow to easily implement this by yourself:

Firstly, as an example, look at the implementation of: CXTPCalendarDayView::ScrollToWorkDayBegin(). Your method could be implemented in a similar manner.

See also following members of CXTPCalendarDayView which can help you:
    COleDateTime GetCellTime(int nCell)
    int GetCellNumber(CXTPCalendarDateTime dtTime, BOOL bForEndTime)
    COleDateTimeSpan GetCellDuration()

    int GetTopRow()int
    int GetVisibleRowCount()

    void ScrollV(int nIndex, int nPos_raw)

--
HTH,
Serge


Posted By: Simon HB9DRV
Date Posted: 24 October 2005 at 2:49pm
Thanks - that's enough information. I'll set up a one minute timer.

Cheers

-------------
Simon HB9DRV



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