Grid Object

back to main page

What is the Grid Object?

Grid Object is a Visual Prolog custom control. It allows easy access to grid elements and providers rapid application development. Grid elements can be of any type, including Windows custom controls (date, pictures and etc).

See declarations for available methods and properties:

This object is built into VP Studio Shell. Click here to download VP Studio Shell samples.

Steps to include object into your project:

 

VP Studio Shell

Description

Create custom control with the name:

 

cl_grid

 

Edit Object properties using VP Studio Shell property editor.

You can define:

  • Font

  • Background color

  • Alignment

  • Column names

Preview object and compile application.

The parameters entered will be passed to the object in final application.

The same data will appear in your compiled application

 


Note: Grid object classes are not compatible with previous version of Grid Object.
If you are user of VP Studio Setup utility - please use follow instruction below.


To include Grid Object - open your
project.inc file with VP Studio Setup utility and checkout necessary options. Please save your changes and open Visual Prolog project.

:

Create custom control with the name grid_object_class

Steps to include Grid Object into your project:

  1. Add the following code before creation of the Grid Object custom control:
    SysObject = system_object::new(_Win),
    SysObject:system_color("normal_background",0xC08000),
    store_grid_callback(_Win,my_grid_callback),

  2. my_grid_callback - this is your handler of grid actions.

  3. How to access your grid Object?
    Use object extractor - get_grid_object(GridWin,GridObject),
    After that you can access object methods via Class interface.

Download Project sources (VIP 5.2 source 64 KB)


Copyright 1998-2000 EDMGROUP (Australia)

Last Updated: April 17, 2002