Pasting a child to childless notes

Tinderbox Icon

This mainly affects work in Outline and Chart views. When pasting notes, either within or between TBXs, it it may often be the case that the paste location needs to be as the child of existing note the currently has no children. With pate - as opposed to drag/drop there is no way to indicate via the cursor whether the incoming note(s) are to be added as sibling(s) or child(ren). There are two possible approaches. In both cases select the to-be-parent note before:

There is a subtle difference between the two methods. The second only invokes the $OnAdd of the intended new container. The first method invokes the latter and the $OnAdd of that container's parent as the pasted content is initially pasted in as a sibling of the containers and so gets the $OnAdd action of their mutual parent.

If $OnAdd actions aren't being used or the code used is trivial, then both methods are equally good. If there are significant location-dependent $OnAdd actions, the second method is the best one to use.


Possible relevant notes (via "Similar Notes" feature):

Up: Import/Export/Formatting
Previous: OS Services  Next: Pasting and Text Margins 

A Tinderbox Reference File : Import/Export/Formatting : Pasting a child to childless notes

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox