Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Can I set the scrollbar value?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can I set the scrollbar value?

 Post Reply Post Reply
Author
Message
mknecht View Drop Down
Newbie
Newbie


Joined: 16 July 2009
Location: Canada
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mknecht Quote  Post ReplyReply Direct Link To This Post Topic: Can I set the scrollbar value?
    Posted: 13 September 2017 at 3:29pm
I need to synchronize multiple calendars. When the scrolled amount changes on one control I need to set several other calendars to the same scroll level. Is it possible?
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 14 September 2017 at 9:58am
Hello mknecht,

Try 
CalendarControl.DayView.ScrollV (10)

Regards,
 Oleksandr Lebed
Back to Top
mknecht View Drop Down
Newbie
Newbie


Joined: 16 July 2009
Location: Canada
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mknecht Quote  Post ReplyReply Direct Link To This Post Posted: 14 September 2017 at 11:01am
I've investigated that function before and it doesn't satisfy my requirement. ScrollV moves a cell into view but not to a consistent position - it may put it at the top or it may put it at the bottom depending on what the control was initially at. I need it to be consistent. So for instance 11:00 is at 312 pixels from the top on all 5 calendars. Or always at the top, or always at the bottom. This would make it easy to compare the 11:00 slot across all the calendars. Also is there a scroll event that gives me the top most visible cell or time? I used HitTestEx to find the time at a point but had limited success.

I tried to sell the client on a consolidated calendar that shows ViewGroups but that isn't suitable for other reasons.

I also tried using the SetScrollBars method. It works brilliantly except setting the VScrollbar.Value doesn't repossition the calendar. 

Ideally I'd like access to the scrollbars hwnd so I can intercept and send it messages. 


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.186 seconds.