Katalogerna
PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


GTP.NET FAQ 10887


I want to change the alignment of the vertical scroll to the left... Please note that this article refers to the GTP.NET
Jump to article- 2007-05-07 09:40:00 - Email plexityHide

Question

I want to change the alignment of the vertical scroll to the left... currently it is in between the grid and time item area...

Answer

gantt1.Grid.ScrollbarNodes.Parent=gantt1.TimeItemArea;
gantt1.Grid.ScrollbarNodes.Dock=
DockStyle.Right;

Mind you it is not fully supported. The grid does not really know what is going on, so when it displays the horizontal column scroller it will leave some space for the vertical scroller although it is not part of the grid any longer. This can ofcourse be compensated for, but it is not shown in this sample.

To elaborate on this further you can put the scrollbar outside the gantt like this:

      Panel aPanel=new Panel();
      aPanel.Parent=gantt1.Parent;
      aPanel.Top = gantt1.Top + gantt1.DateScalerHeight;
      aPanel.Left=gantt1.Right+1;
      aPanel.Height=gantt1.TimeItemArea.Height;
      aPanel.Width=gantt1.Grid.ScrollbarNodes.Width;

      gantt1.Grid.ScrollbarNodes.Parent = aPanel;
      gantt1.Grid.ScrollbarNodes.Dock=DockStyle.Fill;

Since this is not an un-common request we will add support for this into the Gantt so that this function is built in and fully supported.

 

Google
WWW plexityHide GTP.NET FAQ
Support

Support intro

Knowledgebase

FAQ phGantTimePackage

FAQ GTP.NET

FAQ general

Testimonials

"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%"
Gaurav Patole,
WebTechDevelopers
More testimonials...