By: Paul S. Cilwa | Viewed: 2/24/2019 Posted: 8/3/2018 |
Topics/Keywords: #Computers #Organica #Programming #VB.NET | Page Views: 226 |
A derived Document class to follow shortcuts to a document located elsewhere. |

In the Windows environment, it's common to create a "shortcut" to some program or file, perhaps on the Desktop. In most cases, Windows treats a shortcut (called a "link" in earlier versions of Windows) as if it were the file it points to.
In the Organica environment, shortcuts work similarly but, of course, they can only point to documents (including Folder documents).
Another cool feature of a LinkDocument object is that it can override various properties of the Document it points to, such as the display name or author's name. In the case of a MusicDocument (which we'll create eventually), it could be convenient to override the Track Number and Album Name so that a duplicate track needn't be literally duplicated for a Greatest Hits AlbumDocument.
For now, however, we just need the bare minimum for this class: A few basic properties, and the ability for this class to display instances of itself in the browser window.