|
Copyright ® (1997-2005) EDMGROUP Pty Ltd - EZY Prolog Reference |
main page
Download EZY Prolog
Description:
Grid object represents tabular data and provides convenient interface for storing and displaying data from various tables.
Majority of object properties can be defined by EZY Desigher (interior, column names, menus and etc) as well as from EZY Prolog program at run-time
Automatic code generation:
EZY Prolog supports automatic code generation for Grid.
Generated code provides basic framework for GUI initialization and menu processing.
Click on GRID predicates for full list of built-in predicates.
Control properties:
Properties available for programming at design time:
New: Grid Menus: Rows/Columns/Cells - different menu for different grid marker
Font
Column names
Various Pop-up menus (Row, Column, Cells)
Number of no-scroll columns
Max number of rows and type of row selector
Row style (numbers/no numbers)
Cells style (plain/raised)
Various Grid colors (Headers, Cells, Modified and etc)
Properties available for programming at run-time:
Grid Cell - read/write
Grid Columns - read/write names of grid column headers
Modified Cells - read modified cells
Grid Rows - read/write number of grid rows
Grid columns properties (string, integer, date, choice list)
Control events:
The following events can be processed by user-defined callback:
Windows events (selected menu item, mouse clicks)
EZY Designer generates fully functional default grid event handler, which processed the following menu events (depending on current grid marker Row/Columns/Cells ):
Copy
Paste
Cut
Delete
Clear
Insert
Undo
Sorting of rows by selected column (A-Z and Z-A)
Grid object in EZY Designer:
The following picture displays GRID layout in EZY Designer.
Please note - grid cells can be initialized at design time - initialized cells have yellow background).
Steps to create GRID sample program:
Draw a rectangle, which defines boundaries of the GUI element - EZY Object Viewer will appear
Select cl_grid and type in Control name, press OK
Press and prolog program will be generated automatically with necessary predicates for GUI initialization, events handler and menu processor.
GRID object at run-time:
Please note that system automatically provides supports for 3 different pop-up menus:
Columns - if column selected
Rows - if row selected
Cells - if cells selected
See EZY Code Generation for more information.
More information in Grid Sample Program
Please load and run ezy_grid_test.pro file from EZY Prolog directory.
This sample demonstrates how to define various properties for the data in GRID columns (such as Number, Date or Choice list).
Copyright © 1997-2003 EDMGROUP (Australia)