Unit Hstcbo

-------------------------------------------------------------------------------------} { An "History ComboBox" component for Delphi32. } { Copyright 1996, Christian Holzner. All Rights Reserved. } { This component can be freely used and distributed in commercial and private } { environments, provided this notice is not modified in any way. } { -------------------------------------------------------------------------------------} { Feel free to contact us if you have any questions, comments or suggestions at } { cholzner@ping.at (Christian Holzner) } { JFConnault@mail.dotcom.fr (Jean-Fabien Connault) } { -------------------------------------------------------------------------------------} { Date last modified: 10/20/96 } { -------------------------------------------------------------------------------------} { -------------------------------------------------------------------------------------} { THistoryComboBox v1.61 } { -------------------------------------------------------------------------------------} { Description: } { A component that allows you to Read/Write Items of a TComboBox to/from Registry } { Added Properties to ComboBox: } { property Key: String; "Key in Registry" } { property MaxHistoryLength: Integer; "Max allowed length of the history-items } { property RootKey: TRootKey; } { Added Procedures to ComboBox: } { procedure ReadRegistry; "Reads items from Registry" } { procedure WriteRegistry; "Writes items to Registry" } { procedure AddToList; "Adding an item to the Historylistbox" } { } { See example contained in example.zip file for more details. } { -------------------------------------------------------------------------------------} { Revision History: } { 1.00: + Uses Ini-file for storage by Christian Holzner } { 1.50: + Uses Registry for storage by Christian Holzner } { 1.60: + Added RootKey property by Jean-Fabien Connault } { 1.61: + Fixed some bugs by Jean-Fabien Connault } { -------------------------------------------------------------------------------------

Classes

THistoryComboBox -

Functions

Register - Check maximum numer of entries and delete any duplicate

Types

TRootKey

Constants

RootKeyValues

Variables


Functions


procedure Register;

Check maximum numer of entries and delete any duplicate

Types


TRootKey = (hkClassesRoot, hkCurrentConfig, hkCurrentUser, hkDynData,
             hkLocalMachine,hkUsers);

Constants

RootKeyValues = (HKey_Classes_Root, HKey_Current_Config, HKey_Current_User, HKey_Dyn_Data, HKey_Local_Machine, HKey_Users)


Variables