eva/3 Application BuilderDeveloping eva/3 ApplicationsWorking with FormsStandard BeansSPicture 

Examples Discribing How to Insert a Picture

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
Fig. 171: A Design for Inserting a Picture in the SPicture

The STableElement settings are as follows.

Fig. 172: Database Attribute Category in STableElement
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
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
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
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 Insert image the file select dialog opens.

Fig. 176: Open an image
Fig. 176: Open an image

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
Fig. 177: Picture Inserted in the SPicture

The picture will be stored in the database after pressing the button Speichern .