Solved

Developers Express TOrgChart Shape Help?

Posted on 2002-05-07
13
163 Views
Last Modified: 2010-04-04
I need to create custom shapes in Developers Express TOrgChart. If you have done this, or have the source code of this component and can do it, there will be 500 points available. What I need is a Octagon and a Triangle.


Thanks - and good luck!
P.S. Bonus points to the one who provides all the same functionality as the other shapes.
0
Comment
Question by:shaneholmes
[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
  • 7
  • 4
  • 2
13 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6995683
listening . . .
0
 
LVL 8

Expert Comment

by:Cesario
ID: 6995830
hello shaneholmes,

I dont have the source code. But after displing the demo of TOrgChart I found that they use the standart TShape Component.

If you can get the Sourcecode so replace the TShape Component with TManyShape(TManyShape is a TGraphicControl descendant similiar to TShape, but adding new shapes (Diamond, Triangle, Star, Polygon))

http://www.torry.net/vcl/shapes/enhancedshapes/manysh.zip

good luck

Cesario
0
 
LVL 11

Author Comment

by:shaneholmes
ID: 6997232
No,

It does not use TShape to draw its shapes.

In the source, a new type is declared:

TdxOcShape = (shRectangle, shRoundRect, shEllipse, shDiamond);

and its clear that they draw the shapes using the canvas methods such as :

shEllipse: Cnv.Ellipse(R.Left, R.Top, R.Right, R.Bottom);

shRoundRect:
        begin
          Rad := Node.Radius;
          Cnv.RoundRect(R.Left, R.Top, R.Right, R.Bottom,    Rad, Rad);
        end;


 shDiamond:
        begin
          Pts[0].X := R.Left; Pts[0].Y := R.Top + (R.Bottom - R.Top) shr 1;
          Pts[1].X := R.Left + (R.Right - R.Left) shr 1; Pts[1].Y := R.Top;
          Pts[2].X := R.Right - 1; Pts[2].Y := Pts[0].Y;
          Pts[3].X := Pts[1].X; Pts[3].Y := R.Bottom - 1;
          Cnv.Polygon(Pts);
        end;


Thanks for the attempt though - :)


Shane
0
Technology Partners: 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 11

Author Comment

by:shaneholmes
ID: 6997236
BTW, if someone wants to attempt to do this for me, email me directly at shaen@holmes.net and i will work with you with the source code.

Shane
0
 
LVL 8

Accepted Solution

by:
Cesario earned 500 total points
ID: 6997296
Dear shaneholmes,

I can do it for you. But I need the source code.
Please send it to C_Lababidi@Hotmail.com

Best Regards

Cesario
0
 
LVL 11

Author Comment

by:shaneholmes
ID: 6997374
Cesario ,

Your email is bouncing back to me. Please send me a a valid email address

Shane
0
 
LVL 11

Author Comment

by:shaneholmes
ID: 6997377
shane@holmes.net
0
 
LVL 11

Author Comment

by:shaneholmes
ID: 7002250
Great Job,

If you make the required changes I requested, there is the bonus as well.

Thanks Again!
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 7002403
atleast, other may also see the solution
0
 
LVL 11

Author Comment

by:shaneholmes
ID: 7002760
Right,

And I will when the changes are done!

0
 
LVL 8

Expert Comment

by:Cesario
ID: 7002906
Hi Meikl,

I think it´s not possible to post the Modification of the Source copy ( Copyright ) here. I am sure Shane can post you the new code.

Cesario
0
 
LVL 8

Expert Comment

by:Cesario
ID: 7002908
Shane,

I still have some Problems with the Star Shape. But I wil fix it totday.

Best Regards

Cesario
0
 
LVL 11

Author Comment

by:shaneholmes
ID: 7006287
Right,

No plans on posting the entire source listing. Just the changes.

Shane
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

691 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