Print Page | Close Window

Track Control Customisation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17104
Printed Date: 22 November 2024 at 1:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Track Control Customisation
Posted By: Hemesh
Subject: Track Control Customisation
Date 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



Replies:
Posted By: Hemesh
Date Posted: 18 August 2010 at 5:55am
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


Posted By: Xander75
Date Posted: 18 August 2010 at 8:02am
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)


Posted By: Jean
Date Posted: 01 November 2010 at 6:18am
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


Posted By: adrien
Date Posted: 01 November 2010 at 5:28pm
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.




-------------
http://www.wingate.com - http://www.wingate.com


Posted By: adrien
Date Posted: 01 November 2010 at 5:28pm
sorry - this is with the MFC version though, don't know about ActiveX

-------------
http://www.wingate.com - http://www.wingate.com


Posted By: Hemesh
Date Posted: 03 November 2010 at 7:01am
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


Posted By: Xander75
Date Posted: 03 November 2010 at 7:31am
@ 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)


Posted By: zaksoft
Date Posted: 03 November 2010 at 8:20am
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..
 


-------------
VS2022 - MFC MBCS Statically linked

XTP 23.1 Static Link

---------------------------------------------------------

Davide Zaccanti - ZakSoft - www.zaksoft.com



Posted By: adrien
Date Posted: 03 November 2010 at 8:54pm
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 :)


-------------
http://www.wingate.com - http://www.wingate.com


Posted By: Jean
Date Posted: 03 January 2011 at 7:44am
Is there now a VB6 solution?  Or is it planned to implement? Ermm

-------------
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2
Language: VB6 / C# 4.0


Posted By: Xander75
Date Posted: 27 January 2011 at 9:52am
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 Wink

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)


Posted By: jpbro
Date Posted: 27 January 2011 at 10:00am
Good news!

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Jean
Date Posted: 02 February 2011 at 5:28am
Great. Thanks for the good news!  Clap


-------------
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2
Language: VB6 / C# 4.0


Posted By: Xander75
Date Posted: 18 February 2011 at 6:22am
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)


Posted By: Hemesh
Date Posted: 18 February 2011 at 6:24am
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


Posted By: leeyn
Date Posted: 18 March 2011 at 11:14pm
his seems like it could work for a gantt style chart. I am looking to customise the headers into Hours...


Posted By: Xander75
Date Posted: 13 April 2011 at 10:45am
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)


Posted By: wsun
Date Posted: 17 January 2012 at 5:03am
Hi,
How to change the timeline to date format? Can you share the code here? 

Thank for help.


Posted By: Xander75
Date Posted: 18 January 2012 at 3:54am
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:
'Manually set TimeLine Step:
.PaintManager.TimeLineStep = 1
.PaintManager.TimeLineStepAuto = False
   
'Allow Format TimeLine Label
.PaintManager.CustomTimeLineLabel = True

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)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net