![]() |
Track Control Customisation |
Post Reply ![]() |
Author | |
Hemesh ![]() Senior Member ![]() Joined: 10 August 2010 Status: Offline Points: 135 |
![]() ![]() ![]() ![]() ![]() Posted: 12 August 2010 at 7:25am |
Hi guys, is there a way to customise the headers for the Track Control so I can have dates on there for instance?
![]() |
|
Product: Xtreme SuitePro (ActiveX) version 18.5.0
Platform: Windows 7 Enterprise (64-bit) Language: Visual Basic 6.0 |
|
![]() |
|
Hemesh ![]() Senior Member ![]() Joined: 10 August 2010 Status: Offline Points: 135 |
![]() ![]() ![]() ![]() ![]() |
guessing this ain't possible, would be a nice feature to have so it can be used for scheduling!
|
|
Product: Xtreme SuitePro (ActiveX) version 18.5.0
Platform: Windows 7 Enterprise (64-bit) Language: Visual Basic 6.0 |
|
![]() |
|
Xander75 ![]() Senior Member ![]() ![]() Joined: 26 April 2007 Status: Offline Points: 353 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I would like to know if this too is possible? I have been asked to look into creating a bespoke planning/scheduling tool and I found this TrackControl tool, this seems like it could work for a gantt style chart. I am looking to customise the headers into Hours, Days or Months, is this be possible or not? Thanks. |
|
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) |
|
![]() |
|
Jean ![]() Senior Member ![]() ![]() Joined: 11 December 2006 Status: Offline Points: 110 |
![]() ![]() ![]() ![]() ![]() |
It would be really nice if the TrackControl could work with dates!
|
|
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2 Language: VB6 / C# 4.0 |
|
![]() |
|
adrien ![]() Senior Member ![]() Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
![]() ![]() ![]() ![]() ![]() |
yes this can be done. we did it for our timeline feature in WinGate 7. You need to override the paint manager for the header.
we also customized the drawing of blocks (added gradient and rounded edges). We found when dealing with large ranges of time, that the top slider becomes largely unusable, so we added a control bar at the bottom to aid zooming and scrolling. |
|
![]() |
|
adrien ![]() Senior Member ![]() Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
![]() ![]() ![]() ![]() ![]() |
sorry - this is with the MFC version though, don't know about ActiveX
|
|
![]() |
|
Hemesh ![]() Senior Member ![]() Joined: 10 August 2010 Status: Offline Points: 135 |
![]() ![]() ![]() ![]() ![]() |
D'oh! wish this was possible in ActiveX which is where the problem lies...
|
|
Product: Xtreme SuitePro (ActiveX) version 18.5.0
Platform: Windows 7 Enterprise (64-bit) Language: Visual Basic 6.0 |
|
![]() |
|
Xander75 ![]() Senior Member ![]() ![]() Joined: 26 April 2007 Status: Offline Points: 353 |
![]() ![]() ![]() ![]() ![]() |
@ adrien
Could you possibly post some sample code on how you override the PaintManager. Hopefully the two versions might be similar enough to allow us to do the same. |
|
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) |
|
![]() |
|
zaksoft ![]() Senior Member ![]() ![]() Joined: 05 June 2003 Location: Italy Status: Offline Points: 162 |
![]() ![]() ![]() ![]() ![]() |
Yep..
Adrien, it's exactly what I ask to CJ, I'm using MFC version, if you can share with us timeline header it will be highly appreciated..
|
|
VS2008 SP1 - VS2010 SP1 - VS2012 - MFC MBCS Statically linked
XTP 15.3.1 Static Link --------------------------------------------------------- Davide Zaccanti - ZakSoft - www.zaksoft.com |
|
![]() |
|
adrien ![]() Senior Member ![]() Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
![]() ![]() ![]() ![]() ![]() |
we just derived from CXTPTrackPaintManager for our paint manager.
then we added support for time / position override: virtual void DrawTrackHeader(CDC* pDC); virtual void DrawTimeLine(CDC* pDC); to set the paint manager on the track control just call SetPaintManager with an instance of our derived class. The fun/pain is in the implementation of the actual derived paint manager :)
|
|
![]() |
|
Jean ![]() Senior Member ![]() ![]() Joined: 11 December 2006 Status: Offline Points: 110 |
![]() ![]() ![]() ![]() ![]() |
Is there now a VB6 solution? Or is it planned to implement?
![]() |
|
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2 Language: VB6 / C# 4.0 |
|
![]() |
|
Xander75 ![]() Senior Member ![]() ![]() Joined: 26 April 2007 Status: Offline Points: 353 |
![]() ![]() ![]() ![]() ![]() |
Hi folks,
Just to let you all know I have had a support ticket in for this since the end of last year and Oleg has let me have a look at a beta example of the Track Control for v15. I don't believe this is available in the beta download from the site, just in case you look and can't find it! As you can see this now allows for full customisation of the Label, however I have asked if possible that we could have another label on top that allows us to have a Group Header label. Similar to that of the one posted above by Adrien. But this certainly looks like we are heading in the right direction with the Track Control to allow this to be used as a Gantt Chart ![]() If you have any idea's I will gladly post them on my support ticket. If Oleg can deliver then I am sure we will be onto a winner with this customisation of the Track Control. ![]() |
|
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) |
|
![]() |
|
jpbro ![]() Senior Member ![]() ![]() Joined: 12 January 2007 Status: Offline Points: 1354 |
![]() ![]() ![]() ![]() ![]() |
Good news!
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
Jean ![]() Senior Member ![]() ![]() Joined: 11 December 2006 Status: Offline Points: 110 |
![]() ![]() ![]() ![]() ![]() |
Great. Thanks for the good news!
![]() |
|
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2 Language: VB6 / C# 4.0 |
|
![]() |
|
Xander75 ![]() Senior Member ![]() ![]() Joined: 26 April 2007 Status: Offline Points: 353 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Again just to let everyone know I had asked CJ for an update to the recent TimeLineLabel addition for custom labels and will be released with v15.0.2. Who says CJ doesn't answer support requests... Not me!!! The issue I raised was that I had to use the step increment as 1 to denote each day of a month, therefore I could correctly display the months. However on doing so I found it hard to see which of the steps related to the customised label. So I asked for the ability to change the step colour and length (see screenshot below) and a day later it's implemented in v15.0.2: ![]() Got to give a big thanks to Oleg for this one! |
|
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) |
|
![]() |
|
Hemesh ![]() Senior Member ![]() Joined: 10 August 2010 Status: Offline Points: 135 |
![]() ![]() ![]() ![]() ![]() |
Cool! Think i may have to pose the question to our dev team to replace my report control integration with this new track control :)
|
|
Product: Xtreme SuitePro (ActiveX) version 18.5.0
Platform: Windows 7 Enterprise (64-bit) Language: Visual Basic 6.0 |
|
![]() |
|
leeyn ![]() Newbie ![]() Joined: 18 March 2011 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
his seems like it could work for a gantt style chart. I am looking to customise the headers into Hours...
|
|
![]() |
|
Xander75 ![]() Senior Member ![]() ![]() Joined: 26 April 2007 Status: Offline Points: 353 |
![]() ![]() ![]() ![]() ![]() |
Hi leeyn,
You should be able to customise this for hours! It wouldn't be too hard to do. |
|
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) |
|
![]() |
|
wsun ![]() Groupie ![]() Joined: 11 January 2012 Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
Hi,
How to change the timeline to date format? Can you share the code here? Thank for help.
|
|
![]() |
|
Xander75 ![]() Senior Member ![]() ![]() Joined: 26 April 2007 Status: Offline Points: 353 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I believe this can only be done in v15.1.3 and forward (possibly one of the of the builds before v15.1.3) from what I remember but it's simple to do. When setting up the TrackControl add:
Then using the TrackControl_TimeLineLabel event you can change the Label, TickColor & TickLength fields. PS. You format "Label" with the date format you need to display. |
|
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) |
|
![]() |
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 |