Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - [Closed] Wish: Time Scrolling
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Closed] Wish: Time Scrolling

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: [Closed] Wish: Time Scrolling
    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...

Edited by Simon HB9DRV
Simon HB9DRV
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2005 at 2:49pm
Thanks - that's enough information. I'll set up a one minute timer.

Cheers
Simon HB9DRV
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.187 seconds.