Page 1 of 1

Adopted child in diagram

Posted: 27 Jan 2020 14:28
by stuartd
I have an individual who was adopted, and I would like that aspect of the relationship to be immediately visible in diagrams. I have set the relationship to 'a' on the parents property box.
I seem to recall reading/seeing somewhere that in traditional trees this was shown by a small circle on the descending line to the individual concerned. Whilst I suspect that cannot be achieved (automatically) in FH, is there a simple way of doing something similar?

Any assistance will be much appreciated.

Stuart

Re: Adopted child in diagram

Posted: 27 Jan 2020 14:39
by Jane
Either add a line to the text scheme using

Code: Select all

%CUR~FAMC.PEDI% %CUR~FAMC.PEDI[2]%
OR
You could simply use an expression in the box settings to change any aspect of the box or to add an icon, on the same code if you want to flag any children where the relationship is Adopted

Code: Select all

=IsTrue(%CUR~FAMC.PEDI% = "Adopted")
If you are setting separately for each parent you might want to check for PEDI[2] as well.

Re: Adopted child in diagram

Posted: 27 Jan 2020 14:54
by tatewise
There are a number of options.

FYI: there is also a standard Adoption Event that you can add to such children that provides the ability to record where and when the adoption took place and can cite any reference documents.
See how_to:recording_children_with_foster_adoptive_parents|> Recording Children with Foster/Adoptive Parents.

So one possibility is to edit your Diagram > Options > Boxes to have a Condition that uses an Expression to hold the Data Reference of the Adoption Event, i.e. %INDI.ADOP%
But that condition is true whichever parents are shown in the Diagram.

Similarly, that Expression could test for the Adoption pedigree, i.e. =IsTrue(%CUR~FAMC.PEDI% = "Adopted")
By using CUR~FAMC it ensures the test is only true if the adoptive parents are shown in the Diagram.

Associated with the Condition can be any Box Features you prefer such as: Fill colour, Line style, Shape style, Text colour, Shadow style, or an Icon.

BTW: I don't think the Father or Mother pedigrees use %CUR~FAMC.PEDI[2]% but use underscore:
%CUR~FAMC._PEDI% = "Adopted (father)"
%CUR~FAMC._PEDI% = "Adopted (mother)"

Re: Adopted child in diagram

Posted: 27 Jan 2020 15:02
by stuartd
Thank you Jane.
Your first suggestion produced the word "Adopted" in the details beneath the individual, and I know that I can alter its position relative to other details and font size, colour, etc... So that is certainly a solution.
The second suggestion is more in line with what I had in mind, and having added the expression that you gave and set the box fill to pale yellow I had expected the individual's box to stand out on its own yellow background. But there was no change at all to the diagram.
Have I missed doing something somewhere, or just misunderstood what you were suggesting?

Stuart

Re: Adopted child in diagram

Posted: 27 Jan 2020 15:06
by tatewise
You must position your Condition higher in priority than the Box Type condition that also sets Box Fill, otherwise it takes precedence and overrides your setting.

BTW: I posted about the same time as Jane, see earlier posting.

Re: Adopted child in diagram

Posted: 27 Jan 2020 15:10
by stuartd
Mike, I spotted your posting as soon as I had sent my reply to Jane.....
The expression dealing with adoption is at the top of the list of expressions and the priority column says Highest; the Box type is at the bottom of the list; but the box remains unchanged.

Stuart

Re: Adopted child in diagram

Posted: 27 Jan 2020 15:25
by tatewise
It is working for me.
Check your Expression is exactly =IsTrue(%CUR~FAMC.PEDI% = "Adopted")
Are the adoptive parents shown in the Diagram as parents of the adopted child?
Often Diagrams will default to the birth parents, so the Expression will fail.

Re: Adopted child in diagram

Posted: 27 Jan 2020 15:41
by stuartd
Mike,
I think I had the expression correctly written, but to be certain I Copied the expression from your posting into the relevant box, but still no success.
Curiously, if I edit the features to include an icon that appears as soon as I click on "Apply"; likewise the text colour option. But not the box fill, nor box line...

Stuart

Re: Adopted child in diagram

Posted: 27 Jan 2020 15:54
by tatewise
That is very odd, as clearly the Expression is working correctly and invoking some Box Features.
They all seem to be working here, so perhaps you can post a screenshot of your Boxes tab with your Condition selected so its Features are shown below.

BTW: Usually <Default> is at bottom of list with Lowest priority, not Box Type as you described.
Does that give any clues?

Re: Adopted child in diagram

Posted: 27 Jan 2020 16:14
by stuartd
Apologies for being less than precise about the order of expressions. I suppose I was rather mentally discounting the default, as always being there, the Box Type is indeed next to bottom of the list.
I was expecting that a request for a screenshot would be the next obvious step, and never having done one, much less attached it to a forum message, it may be a little while before I have worked out how to achieve that... But I will endeavour to do so.

Stuart

Re: Adopted child in diagram

Posted: 27 Jan 2020 16:19
by tatewise
See info:forums#posting_topics|> Posting Topics regarding attachment screenshots.

Re: Adopted child in diagram

Posted: 27 Jan 2020 16:36
by stuartd
Thanks for that pointer, Mike.
Hopefully the relevant dialog box will appear below...
BoxOptions.png
BoxOptions.png (42.54 KiB) Viewed 7435 times
Kind regards,
Stuart

Re: Adopted child in diagram

Posted: 27 Jan 2020 17:07
by tatewise
I have to admit I cannot see anything wrong with that.
You say you simply use the Edit Features button as shown in your screenshot, and change some other features, then click Apply and those new features get rendered correctly on exactly the same Diagram, but the Box Fill never gets applied?

Re: Adopted child in diagram

Posted: 27 Jan 2020 17:08
by jimlad68
I like to keep my database simple (1 size fits all solutions) so if I want to "briefly" emphasise or note something pertinent about a person I have created a custom fact, use the note field with something like:
[not on 1841 census]
or [TWIN, coal hewer]
or [adopted]
or [prob stepdau of Xxx Xxxx]

I use a "normal time" of shortly after birth for the fact so that it always appears near the top in reports etc
But mainly it is for diagrams where in the text scheme I just add %INDI.EVEN-BRIEF[1+].NOTE2%

This is not automatic, but covers many situations.

Re: Adopted child in diagram

Posted: 27 Jan 2020 17:51
by stuartd
Mike,
I have gone back to the features box and played around with the various settings to see which worked and which didn't.
I think the box fill wasn't working because I hadn't selected a box 'shape'. When I selected a rectangle for the box shape then the fill colour also appeared; likewise with the box line selection.
I have never actually bothered with boxes before, because I prefer just to have the text (and icons where appropriate) in my diagrams, so it never occurred to me that the various features did not work entirely independently of each other. But I can see the logic that FH can't 'fill' a box, or put a line round it if it has no declared 'shape'.

jimlad68,
In many instances I would do the same as you suggest but, as Mike alluded to earlier, anything in a fact, or note, is always going to appear with the individual concerned, and that would not be wanted in a diagram based on his 'birth' mother for instance.

It does look as if this is now sorted - I just have to decide precisely what feature I use to indicate this particular case.....

As a bonus I have also discovered how to attach screenshots :D

Thanks to everyone for the suggestions and guidance.

Kind regards,
Stuart

Re: Adopted child in diagram

Posted: 27 Jan 2020 18:02
by tatewise
Ah! Yes Stuart, that would do it.
Tip: Don't completely obscure the underlying Diagram. Then I would have seen you had <no box> defined.