Using Icons

  • Skill Level: Advanced, Intermediate, and New User
  • FH versions: V4, V5, V6, V7, and V8
  • In Topics: Diagram Tips 

Introduction

An Icon is a small image file that will sit against a box on a diagram. Some users feel they are an excellent way of keeping visual track of  information, such as what census records have been associated with people, immigration facts, death during infancy, twins, or work in progress.

How Can I Create an Icon

The Diagram Icons Downloads collection offers Icons to identify facts and other data items. Some use National Flags to show birth places or immigration, which on diagrams are helpful as visual aids during a census trace exercise.

In ƒh8 the supplied icons are SVG, and your own icons are added with File > Import/Export > Diagram Box Icons, which puts them in a Custom category; see Diagrams in Version 8. SVG gives the best results. PNG, EMF and BMP files can still be imported, but icons made for earlier versions may show in a white box. To get rid of it, convert them to SVG with a transparent background (the free Inkscape will do this) and import the SVG files. If you gave your old icons a background colour to match your diagrams, leave it out this time: a transparent background looks the same and still works on a different background or with generation banding. Convert one icon and check it in a diagram before you do a whole set.

Most SVG icons work as they are, but ƒh8 ignores two things in an SVG file. If letters or numbers are missing from an icon, it’s because ƒh leaves out text. Open the icon in Inkscape, choose Edit > Select All, then Path > Object to Path, and save: the letters are then drawn as shapes, and shapes always show.

If an icon comes out black in ƒh but looks right in Inkscape, its colours are kept somewhere ƒh doesn’t read, which is common in icons downloaded from the web. Inkscape has to write each colour out again. Click a coloured shape, open Object > Fill and Stroke and note the code in the RGBA box. Click any other colour in the palette at the bottom of the window, then type the code back into the RGBA box and press Enter. Do the same for each colour, then save. Typing the same code in without changing it first does nothing: Inkscape decides there’s nothing to save.

The thumbnails in the Select Icon dialog show the same as the diagram will, so you can check an icon there before you use it.

The rest of this section is for earlier versions.

In earlier versions, if you can’t find a suitable Icon in our Downloads, it is worthwhile to try to edit one of the .bmp files supplied in ƒh using an Image Editor such as PAINT (on most Windows PCs), or Adobe Photoshop, etc.

These Icon files are located in the Family Historian Program Data Folder in the Icons sub-folder. It is advisable to add any new Icons either to that sub-folder, or to your Family Historian Projects folder.

Using Icons

Icons are managed in Diagrams by opening Diagram > Options, navigating to the Boxes tab and using the <<Add/Edit/Delete>> Condition buttons.

To select a Flag as a Condition, click the <<Add Condition button, choose Record Flag, and select the Flag from the list. A tab for that Flag will be added to the Record Flag pane below the Conditions.

A Condition can also be an Expression that involves Data References or Functions. So a Flag is no longer needed to define a Condition associated with basic GEDCOM data.

To choose the Icon, first select the Condition Record Flag or Expression, then click the Edit Features… button. In the Box Features window, tick the Icon option and <<Select the Icon file.

Note that other Features can also be chosen to depict the Condition, e.g. changing the Text Colour or the Box Fill.

Worked Examples

As a simple example, assume that an Icon is desired to depict every Retirement Event, and a Y presented in an Individual Record Window Column.

Simply add a Condition Expression of %INDI.RETI% and select the Icon as described above. With this technique the Icon is always factual, because its Condition is the existence of the  Retirement Event itself.

To obtain more precise Conditions use an Expression based on the examples below, assisted by the <<Insert Data Ref… button.

  • %INDI.RETI.DATE% will match the 1st Retirement Event if it has a Date defined.
  • %INDI.BAPM.SOUR>% will match the 1st Baptism Event if it has a Source Citation.
  • %INDI.CENS[year=1901]% will match a Census Event with a Date in 1901.
  • %FAM.MARR.PLAC% will match the 1st Marriage Event if it has a Place defined.

Much more complex Expressions are possible with the use of Functions and some examples are given below:

  • =Exists( %INDI.FAMS>MARR.PLAC% ) is an alternative to the preceding 1st Marriage Event example.
  • =Exists( %INDI.FAMS[2]>MARR.PLAC% ) is a similar alternative, but for a 2nd Marriage Event.
  • =IsTrue( %INDI.CENS[year=1871].SOUR>_TYPE% = "Census" ) matches a Census Event in 1871 with a Source Citation where its Type is Census.
  • =ContainsText( %INDI.BAPM.SOUR>TITL%, "Baptism", STD ) matches the 1st Baptism Event if it has a Source Citation whose Name contains the word Baptism.
  • =IsTrue( (Diff(DayNumber(%INDI.BIRT.DATE%),DayNumber(Field(NextSib(%INDI%,1),'INDI.BIRT.DATE'))) < 2 ) or (Diff(DayNumber(%INDI.BIRT.DATE%),DayNumber(Field(PrevSib(%INDI%,1),'INDI.BIRT.DATE'))) < 2 ) ) finds twins and other multiple births.

Icon File Links (Version 7 and earlier)

In ƒh8, icons are chosen from the categories in the Select Icon dialog instead; to move your own to another PC, export them with File > Import/Export > Export > Diagram Box Icons.

In earlier versions, to add an Icon, open the Box Features window, tick the Icon option and <<Select the Icon file. This file can be anywhere on the PC, but you should consider the ease of moving your ƒh configuration to another PC when deciding where to store the file.

If the Icon file is in the Family Historian Program Data Folder Icons sub-folder, then just its filename is saved and it will migrate to another PC. So if you need custom Icons, add them to this Icons sub-folder.

In all other cases the Icon file path is saved in full, and often will NOT migrate to another PC, so the Icon file link will become broken and need repairing. If the Family Historian Program Data Folder is synchronised on two PC via cloud storage such as Dropbox then this is unworkable for the synchronised Diagram files. A possible solution is to use a folder that has the same file path on most PC, such as the Public Pictures folder, or the Family Historian Program Data Folder sub-folders, which are the same on Windows Vista/7/8/10.

Why does the Icon overlap the Shadow in my Text Scheme?

The Icon position is set to sit immediately below a box on top down diagrams. If you have opted to have a shadow under that box, the Icon needs to have some space at the top to make it appear to be lower. This is done by making the top bit a background colour which basically just doesn’t show on the diagram!

Last update: 2026-10-29 11:24:59