horizontal scrollbar

Feb 2, 2009 at 2:14 PM
if DaysToShow is big(let's say 30) and the width of the control is not large enough, the appointments will not fully displayed.

if it support horizontal scrollbar, it will solve the problem.
Jul 2, 2009 at 9:21 AM

Hi All,

horizontal scroll bar is the one feature which is currently not available in this control compare to other controls in market.

Also it would be nice feature to show more days at a time, i hope lot of developers are already have full knowledge of the code so this feature implementation won't take much time i guess.

if anyone need any development help then i ready to contribute...

please let me know you guys opinion on this feature...

Regards

Sathish

 

 

 

 

 

Jul 3, 2009 at 7:51 AM

Hi All,

Somebody already have implemented horizontal scrollbar feature in their projects, please share with us your code.

Regards

Sathish

 

 

Jul 29, 2011 at 7:37 AM

Hi Guys,

Not sure if this will help at all, but I implemented a simple solution to scroll the days based on the user holding down their "Control" button (ModifierKeys) and scrolling their mouse wheel. You can obviously customise this to use whichever modifierkey combination you prefer.

See code below (this method is on "DayView.cs")

public void ScrollMe(bool down)
{
if (this.AllowScroll == false)
return;

int newScrollValue;
if (down)
{
//mouse wheel scroll down
if (Control.ModifierKeys == Keys.Control)
{
this.StartDate = this.StartDate.AddDays(1);
}
else
{
newScrollValue = this.scrollbar.Value + this.scrollbar.SmallChange;

if (newScrollValue < this.scrollbar.Maximum)
this.scrollbar.Value = newScrollValue; else this.scrollbar.Value = this.scrollbar.Maximum;
}
}
else
{
//mouse wheel scroll up
if (Control.ModifierKeys == Keys.Control)
{
this.StartDate = this.StartDate.AddDays(-1);
}
else
{

newScrollValue = this.scrollbar.Value - this.scrollbar.SmallChange;

if (newScrollValue > this.scrollbar.Minimum)
this.scrollbar.Value = newScrollValue;
else
this.scrollbar.Value = this.scrollbar.Minimum;
}
}
this.Invalidate();
}