Unit AppProp

------------------------------------------------------------------------------ Credits and thanks to: Craig Ward, 100554.2072@compuserve.com for code on logging exceptions Brad Stowers, bstowers@pobox.com, for the code on OnShowHint Marco Cantu, marcocantu@compuserve.com for writing Mastering Delphi 3! ------------------------------------------------------------------------------ I took several useful components and consolidated them into one very useful component. Please note that this component must be listed first in the component creation order TApplicationProperties, Version 2., June 21, 1997 Designed for use with Delphi 2.0 or later and Windows95 ------------------------------------------------------------------------------ Copyright 1997, Kenneth R Kyler dba YakWorks Software. All Rights Reserved. This component can be freely used and distributed in commercial and private environments, provied this notice is not modified in any way. E-Mail: Ken@Kyler.com ------------------------------------------------------------------------------ How to use: First, start by looking at the sample program! Where you see "<= Press F1 to see the definition" position the cursor over the word in question and press F1. The Delphi Help tpoic will explain the use of the property/method/event in question. Methods: ErrorLog <= The filename of the log where exceptions are written. LogException must be true. HintColor <= Press F1 to see the definition HintPause <= Press F1 to see the definition LogException <= if true, then LogIt can write to the ErrorLog ShowException <= if true, exceptions dialog blocks are displayed to the user. If false, exceptions are silent. ShowHint <= Press F1 to see the definition Properties: Loaded <= Press F1 to see the definition LogIt(sText: string; E: Exception); <= Pass a string to be written to the log file specified in ErrorLog as well as the exception that was triggered. Usually used in OnException but can also be used in any try..except..end block Events: **** Press F1 to see the definition of these events OnActivate OnDeactivate OnException OnHelp OnHint OnIdle OnMessage OnMinimize OnShowHint * Note that I've allowed the programmer to override the default event programatically -----------------------------------------------------------------------------

Classes

TApplicationProperties -
TFilenameProperty -

Functions

Register -

Types

Constants

Variables


Functions


procedure Register;


Types


Constants


Variables