Opening a file in a new instance of TreePad
When TreePad is already open, you can open a separate file in a new instance of the program in one of these ways:
- Start TreePad from the Windows start menu to open with blank panes, then Open or Reopen the file;
- Start TreePad from Windows together with a file;
- Open the file from Windows and TreePad will open automatically provided that TreePad files (.tpd, .hjt and⁄or .htmhjt) have been associated with TreePad;
- Create a hyperlink (to the file to be opened) in the article currently open, set Options so that a hyperlink to a TreePad file will always open it in a new TreePad window, then activate the hyperlink.
Opening a file in a new instance of TreePad from a hyperlink
You can set TreePad to open hyperlinked TreePad files in a new TreePad window (a "new instance" of TreePad), by selecting Main menu ⁄ View ⁄ Options ⁄ Article ⁄ Hyperlinks and ticking the box titled "Open links to TreePad files in new TreePad program". Note: Currently you cannot open a file in a new instance of TreePad by selecting Main menu ⁄ File ⁄ (Open | Reopen).
Advantages and disadvantages
Opening in the same instance of TreePad is an advantage if you have several other applications running concurrently and are low on memory or system resources, or if you don't want to clutter your toolbar with too many files open at once. It also reduces the risk that changing "global" settings (such as tab size) in one instance will inadvertently affect files running in other instances. The disadvantages are that extra time is needed to close and open files if you are constantly switching between them, and that you lose your place in a file as soon as you close it. This may not matter for small files.
Opening in a new instance of TreePad is an advantage if you need to switch between two files constantly, or simply want to keep one primary file open all the time and open and close secondary ones. This is likely to become more important as your database grows. The disadvantage is that you may be limited in the number of other applications you can keep open, and if you run out of system resources or memory your applications may lock up or crash with loss of data if you have not backed them up.
Be careful not to open too many copies of TreePad (or any other program for that matter) or you may run out of "system resources", of which computer memory (RAM) is one part. When your system resources drop below 10%, Windows will display a pop-up warning. If you ignore it you may find your system locking up, requiring a reboot with possible loss of unsaved work. To prevent this from happening you should watch your system resource level by running the Windows Resource Meter, which you will find on the Windows Start Menu under Programs\Accessories\System Tools, and consider shutting down any unnecessary windows and applications if the level drops below 15%.
You can actually set this option for each individual copy of TreePad running concurrently. However, when you have concluded your editing session, the setting of this option the next time you start TreePad will be that of the last copy of this program to be shut down. See Instance-specific options. To prevent this from occurring, add the ⁄na switch to the command line. See Command-line switches.
- If your primary window occupies most of the screen or is maximized, opening a file in a second instance will cover it since it takes its window size from the previous window. To avoid this, open a secondary window (which will start off being the same size as the primary), then reduce it in size and⁄or offset it a little, then close it. When this happens, its size and position will be saved to TreePad so that the next time you open a file in a new instance, it will take its size from these settings and will not obscure your primary window. Just remember to make your primary window the last one closed at the end of the session, so that its settings (and not those of any secondary windows) will be used when you start up TreePad again.
- If you have ticked the box titled "Open links to TreePad files in new TreePad program" but at times want to open files in the same window (same instance), e.g if your System Resources are running low, remember that Main menu ⁄ File ⁄ Open and Reopen always open files in the same window. If you have opened the desired file recently it may still be on the Reopen list.
- Since any given file can only be open in one instance of TreePad at any one time, you cannot use Main menu ⁄ File ⁄ (Open | Reopen), or the keyboard shortcuts Ctrl+O or Ctrl+Alt+R to Open⁄Reopen it if it is already open in another instance, even though its name is displayed on the Reopen drop-down list.