Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic EnsureVisible ???? (Read 9712 times)
Pallis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Sep 17th, 2007
EnsureVisible ????
Oct 15th, 2007 at 8:35am
Print Post  
Hi Meppy,

2 days before we bought PocketPlanner and we are very satisfied with the control.

I would like to ask you a question though.

When i am in TimeLine View, i would like control to scroll automatically (after loading items) to the first item for the specific date. I made this routine :

       Public Sub GoToFirstItem(ByVal pDate As Date)

           Dim itemcol As MindFusion.Scheduling.ItemCollection
           Dim FromTime As DateTime
           Dim ToTime As DateTime

           Try

               itemcol = New MindFusion.Scheduling.ItemCollection

               FromTime = New DateTime(pDate.Year, pDate.Month, pDate.Day, 0, 0, 0)
               ToTime = New DateTime(pDate.Year, pDate.Month, pDate.Day, 23, 59, 59)

               itemcol = vCalendarControl.Schedule.GetAllItems(FromTime, ToTime)
              
               If itemcol.Count > 0 Then
                   vCalendarControl.EnsureVisible(itemcol(0))
               End If

               itemcol = Nothing

           Catch ex As Exception

           End Try

       End Sub

I don't know what am i doing wrong but control doesn't scroll in the first item.

Can you see this and answer me what to do ?

Thank you !!

  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: EnsureVisible ????
Reply #1 - Oct 15th, 2007 at 9:31am
Print Post  
Are there any items in the collection returned by the call to GetAllItems? Also, just to make it clear, are you using the Timetable or the Resource view (since both views have timelines?

Meppy
  
Back to top
 
IP Logged
 
Pallis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Sep 17th, 2007
Re: EnsureVisible ????
Reply #2 - Oct 15th, 2007 at 9:39am
Print Post  
In your first question the answer is yes. The collection returns 1 item because in this date i have 1 appointment.

In your second question, i am using the TimeLine View.

Thanks.
  
Back to top
 
IP Logged
 
Pallis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Sep 17th, 2007
Re: EnsureVisible ????
Reply #3 - Oct 15th, 2007 at 9:40am
Print Post  
Sorry.. TimeTABLE View, you are right....  Smiley
  
Back to top
 
IP Logged
 
Pallis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Sep 17th, 2007
Re: EnsureVisible ????
Reply #4 - Oct 15th, 2007 at 10:28am
Print Post  
So i am waiting for your answer Meppy ...

Thank you again !!
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: EnsureVisible ????
Reply #5 - Oct 15th, 2007 at 11:38am
Print Post  
That is a bug. My colleagues will contact you through e-mail with a fixed version as soon as it is ready.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Pallis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Sep 17th, 2007
Re: EnsureVisible ????
Reply #6 - Oct 15th, 2007 at 11:39am
Print Post  
Thank you very much Meppy !
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: EnsureVisible ????
Reply #7 - Oct 16th, 2007 at 5:09am
Print Post  
Let me know whether the version I sent you works better.

Thank you,
Meppy
  
Back to top
 
IP Logged
 
Pallis
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Sep 17th, 2007
Re: EnsureVisible ????
Reply #8 - Oct 17th, 2007 at 5:27am
Print Post  
Control works as intended !!!

Thank you Meppy for your rapid support !!!


Smiley
« Last Edit: Nov 19th, 2007 at 11:54am by Pallis »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint