Solved

TChart Question

Posted on 1998-12-07
9
1,068 Views
Last Modified: 2012-08-14
This is actually a C++ Builder question, but since Delphi is nearly the same, I tought I'd give it a try here.

I'm busy writing a scheduling program and in this I need a Gantt type graph, but with movable bars (drag and move) Is this possible with TChart/TGanttSeries or will I have to write a new component? Please give full details as I'm rather new at this. More points available if neccesary.
0
Comment
Question by:willemnel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1349734
Hi willemnel,

I don't think this is much of a problem, because TeeChart has a demo of this :

*********************************************}
{  TeeChart Gantt Editor example              }
{  Copyright (c) 1995-1997 by David Berneda   }
{  All rights reserved                        }
{*********************************************}

{ This example shows how to allow dragging and resizing of
  Gantt bars at runtime.
}

Regards, Zif.
0
 
LVL 1

Author Comment

by:willemnel
ID: 1349735
Thanks, Zif. Can you please supply the code since I can't seem to find it under C++ Builder's help.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1349736
I'll send it by e-mail. Can you supply your email?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:willemnel
ID: 1349737
willemnel@freemail.co.za
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1349738
Sending...
0
 
LVL 1

Author Comment

by:willemnel
ID: 1349739
Got it, thanks. Just trying to get hold of BinHex 4.0...
0
 
LVL 1

Author Comment

by:willemnel
ID: 1349740
OK, I've got it decoded. It has helped me a bit. Just a question. Do you know what type ***.StartValue[] and ***.EndValue[] is? In the Pascal code you gave it looks like a Double, but C++ refuses to accept it like that. I've tried a few types but no luck.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1349741
Hi willemnel,

From Delphi help-file :

LabelStart.Caption:=XValueToText(StartValues[Selected]);

function XValueToText( Const AValue : Double ) : String;

The result of StartValues[] is a double,
while XValueText should result in a string.

Maybe you can find different information in the C++ helpfile.

Regards, Zif.

0
 
LVL 1

Author Comment

by:willemnel
ID: 1349742
Thanks a lot, Zif
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question