DB image |
DB image. The component is intended for review of the images stored in the database in a graphic mode. Properties of a component are the following: Dataset name, Color, Height, Hint, Left, Read only, Name, Show hint, Top, Width. Dataset name - pointer onto an active dataset which contains the graphic information in a field of Binary type. Field - a field containing the graphic information is chosen from the list. Center - defines whether the image is centered inside a component. If Yes value is set for the property the image is centered, if the property has No value (by default), the image is aligned on the left upper angle of a component. Auto size - controls possibility of automatic resizing of the image so that they are equal to sizes of the component in which it contains. If to set True value for the property then the sizes of the image are tuned up under a component sizes, if to set False value (by default), the sizes of the image do not vary.
Example of creation of the user's form with usage of a component "DB image". Let's consider creation of the user form "Settlements". The given form displays the information on settlements with use of the graphic information (data are formed of Podolsk.dbf table). For creation of the form it is necessary to execute actions: 1. Press Add button in a bookmark "User form" of Base Administrator. Form constructor will be actuated. 2. Create a new form (a command Form/New, or having chosen Create button). 3. Place onto the form the DB Table1 component. This component serves for the organization of access to data. Set the value - ' C: \Panorama9 \DATA \PODOLSK \DataBase\: Podolsk.DBF 'to Table name property, True to Active property. 4. Place onto the form the DB Image component. This component serves for displaying the images. Set the True value to Auto size property, Data set - to DB Table1, Field - Kind. 5. Save the created form.
|