Solved

I would like to know how to draw flowcharts and how to link them up and the ability to drag  each chart around and resize them as well as well as double clicking on them and editing the text

Posted on 2007-11-14
16
197 Views
Last Modified: 2012-05-05
I would like to now how to draw flowcharts

I would like to know how to link them up and the ability to drag  each chart around and resize them as well as well as double clicking on them and editing the text inside the boxes.

Ben
0
Comment
Question by:Alpha_AI
16 Comments
 
LVL 21

Expert Comment

by:developmentguru
ID: 20288805
Are you wanting to know how to write a program to do that?  Are you looking for ideas on which software works well for this?  I believe that Borland has some good software for handling dynamic flowcharts.
0
 

Author Comment

by:Alpha_AI
ID: 20288818
Yes i am looking at writing a program that does that. you see when i code loops and if nested if statements my mind gets buried and i cant seem to solve complicated loops and nested statements so i
want to build a flowchart program that allows me to draw it up and it creates the code for me. i draw the flow, it outputs the code.

Ben
0
 

Author Comment

by:Alpha_AI
ID: 20288825
cos i know what i want in a program, i can even draw a flowchart that gives me what i want but the code is harder cos that is where i get confused.

they say that if you having problems with something then you just dont understand it properly. Yes that is true but to save some times and confusing is what im really looking for.

Ben
0
 

Author Comment

by:Alpha_AI
ID: 20288830
i mean frustration not confusing :-)
0
 

Author Comment

by:Alpha_AI
ID: 20288846
what im after is a system that allows me to draw loops and nested if statements and it creates code for me. I am looking at using this to output PHP code, Javascript code, Delphi code, and any other language code.
But for starters it would be ideal for javascript, php and delphi which are the main ones i try to work with.

Ben
0
 
LVL 21

Expert Comment

by:developmentguru
ID: 20289025
Rather than reinventing the wheel (or perhaps so you can get a good look at what you are after) check out Borland Together at the following link.

http://connect.borland.com/together_bpmdemo_global/index.html

You will notice that not only does it allow the kind of flow charting you are talking about (UML), it also allows for business process modeling and other types.  Other tools from Borland can turn the UML into code.

The full nature of a project like you are talking about has to be defined by you.  When you egt to more specific questions, let us know.
0
 
LVL 21

Expert Comment

by:developmentguru
ID: 20289030
egt = get
0
 
LVL 21

Expert Comment

by:developmentguru
ID: 20289192
If you get the Architect version of Delphi it comes with ECO (Enterprise Core Objects) that let you build applications based on your modeling all within Delphi.  I believe the enterprise version comes with together modeling, just not the ECO.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:Alpha_AI
ID: 20289208
i had a look at that borland together and its very complex, too complex for what it really is.

And i dont think it supports the other languages as well. It is java based. I think the flowchart abilities look bright
but in terms of supporting what i need its far of track.

Even if i find out how to draw the flowcharts and move them and so on and so on, i would like to know how i could create the code based on the flow charts.

ben
0
 

Author Comment

by:Alpha_AI
ID: 20289229
you see borland together in my opinion is too much. I would rather just simple create a simple flowchart program that allows me to create blocks and each block allows me to add code to it. I will be able to also create if statement blocks and loop lines that loop back.

Ben
0
 
LVL 21

Assisted Solution

by:developmentguru
developmentguru earned 150 total points
ID: 20291265
 I started looking into doing a UI for that type of manipulation and it is not a simple task.  It's not like there is a component ready to do what you are looking for.

  I would say the first step would be to get your form to paint itself with a grid so you can visually see how things are lining up.

  Then create your classes that you can place on your form, and a tool palette that you can select them from.  Clicking on your tool palette, then on your form would place a control (custom Delphi control so you have more control over how it looks and behaves).  Each type of visual control will have it's own behavior and / or appearance.  You then need to put in dragging functionality so you can place them where you want to.  If you want to use a Delphi like user interface then you will need a window to let you edit your properties.  You will need to figure out how you want to store this information to a file and reload it later.  I have skipped many of the features that the common developer would like to see, just to keep the conversation on the less complicated side.

  Even the separate pieces of what I have described are projects on their own (and we haven't even gotten to code generation).  You may want to try to start an open source project and see if you can get others to help with the planning and development.  
0
 
LVL 17

Expert Comment

by:TheRealLoki
ID: 20292082
create code from flowcharts? wow, that's pretty nifty...
I made a simple flowchart thing a while back although it was just boxes/shapes with connecting lines.
I have no idea how you'd expand on that to make code from it though...
0
 

Author Comment

by:Alpha_AI
ID: 20294932
TheRealLoki,

You couldn't happen to show me the code could u?

Nifty is the word for it.  

Ben
0
 
LVL 13

Expert Comment

by:rfwoolf
ID: 20295555
Just a small idea -- I'm only trying to help -- is to properly format and indent your code.
I too cannot see how you can create a flood of spaggheti code from a flowchart - I'd just do it manually - but if my code wasn't properly indented and formatted I'd get lost so bloody quickly.
There are various delphi extensions that format your code for you, and even EXTERNAL utilities that claim to be able to format a whole range of languages: C, VB, Pascal, PHP etc

But good luck with the flowchart to code thing.
0
 
LVL 10

Accepted Solution

by:
dinilud earned 350 total points
ID: 20296790
0
 

Author Closing Comment

by:Alpha_AI
ID: 31409279
Thanks Heaps guys
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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 video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

11 Experts available now in Live!

Get 1:1 Help Now