Written by Oleg Kozlov
The example demonstrates the following aspects of programming in Visual Prolog:
- work with bitmap images: drawing bitmaps with transparent areas (by masks of transparency), direct modifying bitmaps as binary terms, methods of storage and usage of images in applications;
- owner drawing of list boxes;
- basic work with internal base of facts;
- basic work with lists.
The list in the left column represents the potions existing in a database. The button from above the list allows to delete the allocated potions from the database.
The list in in the second column represents the selected potions for mixing. With the buttons ">" and "<" at the left and to the right of the list it is possible to add or delete potions from it.
Under the list of the selected potions the field of input potion labels and the image showing color of a mixed potions is located. With the button "< Mix" a user can add a new potion into the database. Potion color is defined by the average value of all ingredients.
The list in third column represents results of search on the filter. The filter is a number of scrollbars in a right bottom corner. With their help you can put restrictions on color making potions and pressing the button "Search >" to put of search results into the list.