How to position in Timeline TrackControl |
Post Reply |
Author | |
StefanNbg
Groupie Joined: 16 July 2009 Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 15 April 2012 at 5:25am |
Hi, I hope anybody can help me.
I have a TrackControl showing a calender of 2 Year beginniung f.e. 2012 til 2013 with all Months. Showing TrackControl it show me starting at Month Jan 2012, but I wanna see the current month of date: Is this possible and if, how can I do this? thx a lot Stefan |
|
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
|
Hi,
I lifted this from the samples Horizontal Scroll event:
Enter a number in the TrackControl.ViewPortMin field and this will take you to the starting point you require. If we use your above example as a test then the 15th of April 2012 is the 106th day, this should then relate to the 106 position in the TrackControl. You could then do this automatically by using DateDiff to calculate the number of days between todays date and the 1st of January 2012 after you have created your TrackControl interface. |
|
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6) |
|
StefanNbg
Groupie Joined: 16 July 2009 Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Thx a lot, that's it
|
|
CJ ActiveX 15.2.1/15.3.1
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |