Visual Prolog 7.3 Examples and Demos

ListView Demo

Written by Chan Bok

This example demonstrates how to manipulate the dialog with the vpiListView control.

Feel free to copy, use, and modify this example in whatever you want manner.

How to Operate This Demo

  1. Open the ListView dialog with the help of the Create|Dialog menu item.
  2. To sort a column, click at the top of the column.
     
  3. Click or Double-click on a row and get a corresponding message.
  4. Click and hold on a row to edit the first field.

Main Steps to Develop This Demo

  1. Create an empty project.
  2. Add a listview class (listview.cl).
  3. Add a listview modal dialog (listview.dlg).
  4. Use the VDE to design a dialog box with 3 controls: OK, Cancel, and a Custom Control.
  5. Assign a class name "listview_class" (can be any name) to the Custom Control.
  6. Create a main menu event onFileNew and link it to the dialog box.
  7. Add the PFC vpiListView package to the project.
  8. Add vpiListView to the "open" qualification.
  9. Complete the remaining codes.

How to Build and Run This Demo

Load the project listViewDemo.prj6 into the IDE and choose Execute or build the project, and then run Exe/listViewDemo.exe.

Download the project

Note

The example requires Visual Prolog 7.3 Commercial Edition.

If you use the Personal Edition, but need the  features supported only in the Commercial Edition, you are welcome to order the latest build of this Edition just now: Order!

Users of previous versions of Visual Prolog are welcome to upgrade to the current version of Visual Prolog  to use the latest versions of the Visual Prolog examples.

 
Home | Company | News | Products Downloads | Shop | Support | Visual Prolog Features | Visual Prolog Compiler | FAQ | Tutorials | Examples | Knowledge Base | Discussion Forum | wiki | Site Map

Prolog Development Center A/S - H.J. Holst Vej 3-5C - 2605 Broendby, Denmark - Tel +45 3636 0000 - Fax +45 3636 0001 - sales@visual-prolog.com