Print Page | Close Window

Can I set the scrollbar value?

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=23442
Printed Date: 24 April 2024 at 2:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Can I set the scrollbar value?
Posted By: mknecht
Subject: Can I set the scrollbar value?
Date 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?



Replies:
Posted By: olebed
Date Posted: 14 September 2017 at 9:58am
Hello mknecht,

Try 
CalendarControl.DayView.ScrollV (10)

Regards,
 Oleksandr Lebed


Posted By: mknecht
Date 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. 





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