The component SPicture can save and load image data in data records. The SNavigator allows to navigate through thze data. The example shows all needed components for a image managment.

Fig. 171: A Design for Inserting a Picture in the SPicture
The STableElement settings are as follows.

Fig. 172: Database Attribute Category in STableElement
The table in wich the pictures will be stored in is called Tab_Picture (s. fig. 173 ).

Fig. 173: Database SPicture to Insert Images
The property TableSource contains the references to the STableElement. The property ControlSource specifies the column, wich keeps the image data (s. fig. 173 ).

Fig. 174: Database Property of SNavigator to Insert Images
The SNavigator toolbar handles the STableElement data source and can therefore handle the store and delete functions (s. fig. 174 ).

Fig. 175: Insert Images in the SPicture
In the running application a menu can be called by right click on the SPicture . By selecting the menu item the file select dialog opens.
The file selection dialog allows the selection of image files. A list of file formats will be shown in the file type list.

Fig. 177: Picture Inserted in the SPicture
The picture will be stored in the database after pressing the button
.