Solved

Developers Express TOrgChart Shape Help?

Posted on 2002-05-07
13
159 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
  • 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to convert wav to mp3 in delphi 9 169
QRReport  TQrmemo vertical stretching 1 42
Delphi IDE crash without error message ... 7 75
Delphi 2 47
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now