i would like to create a Family Tree on a Canvas. Each Item should be clickable. Any Ideas, ho to start with such a project?
[h]Structure[/h]
Class “Person”
Name As String
ID As Integer
Class “FamilyTree”
Persons() As Person
…
[h]Design[/h]
Best Regards[/quote]
Martin are your lines that construct the tree static meaning you know at all times the Source and Destination Node’s Coordinates?
If so what you are asking for is to create an Class with properties that give your Node (Tree Object) capabilities when instantiated for all of your tree nodes on your canvas.
You would create a method to “Add” your nodes to your screen in any mannor you wish. Your canvas.paint event will need to draw these class instances by way of preferably offline drawing pictures.
Of course you will want to possibly manage the parent/child/child etc relationships with your objects, but that IMO is depending on what you are trying to overall accomplish.
Anyhow I am working on a project front end that is similar to what you are asking for, but I am also adding source to destination path finding.
Let us know where you are on this and what help you need. Alex’s stuff is pretty dated since he has focused on ObjC for a while now.
That is what I was going to say. Martin, I have a version that is updated for the latest version of Xojo and I have added the ability to select multiple items.
SimDesignerCanvas can do source to destination and all sorts. (Plus has been used in a family tree app successfully ) Both SimDesignerCanvas and RBComposer can be found at
i would like to create a Family Tree on a Canvas. Each Item should be clickable. Any Ideas, ho to start with such a project?
[h]Structure[/h]
Class “Person”
Name As String
ID As Integer
Class “FamilyTree”
Persons() As Person
…
[h]Design[/h]
Best Regards[/quote]
I have also made other changes such as:
The ability to use pictures and resize them (not very flexible (as it was designed specifically for my own needs) but it shouldn’t take to long to make it more flexible).
Double click to scale picture (this also might not work well for your needs without some small tweaks).
I have probably made more changes (just cannot remember from the top of my head).
[quote=120951:@Oliver Scott-Brown]I have also made other changes such as:
The ability to use pictures and resize them (not very flexible (as it was designed specifically for my own needs) but it shouldn’t take to long to make it more flexible).
Double click to scale picture (this also might not work well for your needs without some small tweaks).
I have probably made more changes (just cannot remember from the top of my head).
Thanks[/quote]
Thanks You Oliver, that Would be Great…
You Need to know, i have a Working Data structure. No i want to create a friendly userinterface to add Person.
[quote=120954:@Martin Trippensee]Really? In which Application Matthew?
Thanks You Oliver, that Would be Great…
You Need to know, i have a Working Data structure. No i want to create a friendly userinterface to add Person.[/quote]
The software title I cannot say only because the author has not released it yet, (although they did release a website development app using the same control recently, mentioned in the add-ons). I’ll send a message and see if we can’t get him to share some screenshots at least. Seems everyone has an interest in family tree software. I helped someone else as well just a few days ago with a family tree class (class-linked-classes). But the SimDesignerControl control is free to download and use in the IDE without nags or having to spend a penny
[quote=120954:@Martin Trippensee]Really? In which Application Matthew?
Thanks You Oliver, that Would be Great…
You Need to know, i have a Working Data structure. No i want to create a friendly userinterface to add Person.[/quote]
Sorry because of the way I have structured my project I may not be able to give you everything I listed but at least it is updated so it does not use any deprecated items. I am on to it.
[quote=120954:@Martin Trippensee]Really? In which Application Matthew?
Thanks You Oliver, that Would be Great…
You Need to know, i have a Working Data structure. No i want to create a friendly userinterface to add Person.[/quote]
Trying to upload now. Have not properly tested it after make a few tweaks before it’s public release.
A family tree is an unusual beast since you usually need to represent not just individuals but also the life events that affect & relate them. Marriages are fun - possibly one or more
There are some excellent references online for some standard notations used http://en.wikipedia.org/wiki/Genogram
The SimDesignerControl Looks like it can do that, what i want, but i don’t understand, how to use it
Genograms are a Way to Show family connections, but not my prefered.
For the Things i Would Love to create, i think, that a binary tree wouldn’t be the best Things because, what will be, if a Child has 2 parent, meen a biological and One foster parentship? The Second is a unconnected One…Looks like, i couldn’t Insert into a binary tree structure
[quote=121198:@Martin Trippensee]Thank you all for the Feedback.
The SimDesignerControl Looks like it can do that, what i want, but i don’t understand, how to use it
Genograms are a Way to Show family connections, but not my prefered.
For the Things i Would Love to create, i think, that a binary tree wouldn’t be the best Things because, what will be, if a Child has 2 parent, meen a biological and One foster parentship? The Second is a unconnected One…Looks like, i couldn’t Insert into a binary tree structure[/quote]
So you are having trouble thinking of a structure for your app and you are not onto programming yet? You could create your own custom class for family tree structure. For a simple family tree structure I would imagine this wouldn’t be too difficult, at least.
[quote=121213:@Martin Trippensee]No no, i have a Working structure…
But no good idea, how the adapt my structure to a graphical Output…
Class FamilyTree with a Dictionary, which includes the Persons (Class Person). Analog: Relationships.[/quote]
What is wrong with RelationalFramesCanvas? Are you looking for this kind of graphical output and does the RelationalFramesCanvas suite your needs (even if you are having trouble using it to get what you want to achieve)?
How experienced are you with programming in general and specifically graphics programming? If I have an idea on how experienced you are, I might be able to help you better.
[quote=120978:@Norman Palardy]A family tree is an unusual beast since you usually need to represent not just individuals but also the life events that affect & relate them. Marriages are fun - possibly one or more
There are some excellent references online for some standard notations used http://en.wikipedia.org/wiki/Genogram[/quote]