TaisDBComboBox Component Copyright (c) 1996, Apogee Information Systems, Inc. Apogee makes no warrenty, implied or otherwise, as to the condition or use of this component, use at your own discretion. This component is freeware and may be freely distributed to all your friends and family. To contact Apogee for more information: Apogee Information Systems, Inc. 5 Mount Royal Dr. Marlboro MA 01752 Phone: (508) 481-1400 Fax : (508) 481-3343 email: aisys@ix.netcom.com WWW : www.apogeeis.com About this component ==================== This component was developed to fulfill a challenge and to fill a hole in the database component suite. The normal TDBComboBox allows you to have values based on a lookup table, but does not allow you to hardcode the values directly on the component. While most times you would indeed want to use a lookup table based component, there are times when the list of values is small and static. The additional overhead of establishing extra table links for the lookup tables may be too high in these cases. Interestingly, the TDBRadioGroup component does provide much of this capability, but the client expressed a desire for a ComboBox interface. While trying to fulfill the challenge, the author checked out the available 3rd party and shareware components available at the time and found none that provided this capability. Thus, he built it using the existing TDBComboBox as a starting point. Unfortunitely, the new component could not be derived from the existing TDBComboBox because a few procedures that were private had to be overwritten. Therefore, a copy of the TDBComboBox was used and changes made to that code. The Values property was the additional property added. It holds the actual code values that the underlying table will store. The Items property will contain the descriptions of the code values. The lists must be entered in the same order or all bets are off. In addition to the Values property, the Style property has been disabled and defaulted to csDropDownList due to the nature of the component. In addition, the Sorted property has been disabled. The component also shows more advanced component building features. These are: 1) Component Editors (ie, double click on the component icon once it is placed on a form), 2) Property Editors (look at the About property), and 3) Component icons (see the AIS_CB.DCR file). If anyone has suggestions for improvement of the component, please forward all comments to Apogee Information Systems. Enjoy!