TCalcEdit CLX Component ======================= INSTALLATION GUIDELINES ----------------------- To install the component you have just downloaded, you need to follow few steps that I'll show you in detail. 1. Copy the calcedit.tar.gz file to your preferred component directory 2. from the terminal window, write [...]$ tar -xzvf calcedit.tar.gz and press Enter. 3. a new directory "CalcEdit" will be created under the current one and all the files compressed will be extracted from the tarball into that directory 4. Open Kylix 5. Select File|Open... 6. into the Open dialog select "Kylix package (*.dpk)" from the File Type listbox 6. from the Open dialog select the CalcEdit dir and then double-click over CalcEdit.dpk If you followed all the above steps, you should now have the Package dialog in front of you. Select "Install" and wait for the compilation. After few seconds a message dialog should appear, confirming that a new component has been installed. COMPONENT DESCRIPTION --------------------- The component you have just installed is an enhanced editbox able to dropdown a basic calculator that also acts like a currency converter. Simply select the small button on the rigth edge and a Calculator form will show, helping you to do some basic operations. You can also set the following properties for TCalcEdit: - ForeignCurSymbol: the symbol for the foreign currency of the converter - DecimalDigits: the number of useful decimals to retrieve after conversion - ConversionRatio: the conversion ratio between the local and foreign currency. Example: -------- say you live in Italy and want to allow your users to convert Italian Lira to/from Euro. You will set the properties as follows: - ForeignCurSymbol = 'Eur' - DecimalDigits = 2 - ConversionRatio = 1936,27 doing so, the calculator will enable two buttons [-> Eur] and [Eur ->] that allow your users to convert the value on the display to/from the appropriate currency. While setting "ForeignCurSymbol" keep in mind that specific locale characters may not display properly with customers' own configuration! COPYRIGHT AND CONTACT INFO -------------------------- Author: Giuseppe Madaffari Copyright: © 2000 by Giuseppe Madaffari. All rights reserved. Version: 1.0 License: you can freely use and distribute the included code for any purpouse, but you cannot remove the copyright notice from the source files. Send me any comment and update, they are really appreciated. Contact: gmadaffari@infomedia.it www.programmers.net/artic/Madaffari web.tiscalinet.it/gmadaffari/