Unit Tips |
---------------------------------------------------------------------------- Tips.pas Copyright © 1998 by DithoSoft Version 1.00b ---------------------------------------------------------------------------- The TTips component provides an easy way to display a "Tip of the day" dialog as it is known from many applications. One advantage of TTips is that no bulky .DFM file is carried along! The Tips dialog is created "manually" at runtime. The strings for the tips can either be added at design time or can be stored in the Registry. ---------------------------------------------------------------------------- Instructions: - In case you need to localize the captions of the dialog components, please modify the "TipCaptions.rc" resource script and compile it using BRCC32.EXE to create the "TIPCAPTIONS.RES" resource file. - If you need to change the resource IDs of the strings, please remeber to change the constants in the unit as well! ---------------------------------------------------------------------------- Registry format: Add one string value for every tip. Rename the value to a number and enter the tip. For example: Value "1", Contents "Tip1" Value "2", Contents "Tip2" ---------------------------------------------------------------------------- Properties property CurrentTip: Integer -> Get or set the index of the current tip (-1 = no tip) property Glyph: TIcon -> Get or set the user defined tip icon property GlyphStyle: TGlyphStyle -> Get or set the style of the icon property RegParentKey: String -> Get or set the parent key of the key containing the tips property RegSubKey: String -> Get or set the key containing the tips property ShowOnStartup: Boolean -> Get or set the state of the "Show on StartUp" checkbox property Tips: TStringList read FTips write SetTips; -> List of all tips property UseRegistry: Boolean -> Indicates whether the tips should be loaded from the registry Events property OnNextTip: TNotifyEvent -> Fired when the "Next" button is clicked property OnCloseDialog: TNotifyEvent -> Fired when the "Close" button is clicked ---------------------------------------------------------------------------- Version 1.00 Initial release. ---------------------------------------------------------------------------- homepage: http://members.xoom.com/dithosoft/ E-Mail: thorsten.dittmar@metronet.de ----------------------------------------------------------------------------
Classes |
TTipDialog -
TTips -
Functions |
Register - Array of glyph resource names
Types |
Constants |
Variables |
Functions |
Types |
TGlyphStyle = (gsLightBulb, gsClown, gsHelp, gsArrow, gsTorch, gsCustom);TGlyphStyle
Constants |
Variables |