Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Track Control Customisation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Track Control Customisation

 Post Reply Post Reply
Author
Message
Hemesh View Drop Down
Senior Member
Senior Member


Joined: 10 August 2010
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hemesh Quote  Post ReplyReply Direct Link To This Post Topic: Track Control Customisation
    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
Back to Top
Hemesh View Drop Down
Senior Member
Senior Member


Joined: 10 August 2010
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hemesh Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post 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.


Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 01 November 2010 at 5:28pm
sorry - this is with the MFC version though, don't know about ActiveX
Back to Top
Hemesh View Drop Down
Senior Member
Senior Member


Joined: 10 August 2010
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hemesh Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
zaksoft View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2003
Location: Italy
Status: Offline
Points: 162
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaksoft Quote  Post ReplyReply Direct Link To This Post 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..
 
VS2008 SP1 - VS2010 SP1 - VS2012 - MFC MBCS Statically linked
XTP 15.3.1 Static Link
---------------------------------------------------------
Davide Zaccanti - ZakSoft - www.zaksoft.com
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post 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 :)
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
Hemesh View Drop Down
Senior Member
Senior Member


Joined: 10 August 2010
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hemesh Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
leeyn View Drop Down
Newbie
Newbie


Joined: 18 March 2011
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote leeyn Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
wsun View Drop Down
Groupie
Groupie


Joined: 11 January 2012
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote wsun Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.