GRIDPLUS - Examples
Home Reference Manpage Examples Download License Contact

Here are some examples of GRIDPLUS usage. The examples are intended to be viewed in numeric order. The simplest example first, the later ones more complex.

Examples 1, 2, 3 and 4 are screen layout/design examples only, an error is generated when a button/link is "clicked". The error message shows the name of the procedure which the button/link invokes.

Example 5 is a functional application intended to demonstrate how a GRIDPLUS application may be structured, and as such, uses very simple screen layouts so as not to distract from the purpose of the example.

Example 6 is a partly functional application intended to demonstrate both GRIDPLUS screen layout/design features and GRIDPLUS application structure.

Examples 1, 2, 3, 4 and 6 give a more in depth look at the screen layout/design possibilities.

Note: Each example assumes that the reader is familiar with the previous examples, as some information is not repeated in the later examples.

Example 1

This is a very simple example using button, entry and layout.

Example 2

This is a more complex example using button, checkbutton, entry, radiobutton and layout.

This example demontrates how to create a toolbar using a icon button grid, embedding Grids within Grids and using non-GRIDPLUS widgets within GRIDPLUS.

Example 3

This is an example to demonstrate the use of GRIDPLUS styles and the Tcl/Tk option database. This example makes use of the GRIDPLUS link.

Example 4

This is a more complex example to demonstrate the use of GRIDPLUS styles and the Tcl/Tk option database. This example also makes use of the GRIDPLUS link, but this time with associated icons.

Example 5

This is an example of a complete "Phonebook" application, based on a MetaKit database, to demonstrate how a GRIDPLUS application may be structured.

NOTE: This example is only intended to demonstrate a complete application it is not the best example to demonstrate the screen design/layout capabilities. To get a better idea of the screen design/layout possibilities of GRIDPLUS you should check-out examples 2, 3, 4 and 6.

This application is much simpler than those for which GRIDPLUS is intended, but the simplicity makes the example more clear (I hope!!).

Example 6

This is an example of part of a "Course Booking" application, based on a MetaKit database, to demonstrate how a GRIDPLUS application may be structured.

This example makes use of the GRIDPLUS text tags facility, the tablelist -action single option, uses the GRIDPLUS link to create a toolbar, and is also another demonstration which uses GRIDPLUS styles and the Tcl/Tk option database.

The sample database for this application contains a selection of courses/locations/dates and a few sample bookings. This example application allows bookings to be created/edited/cancelled -but- does not have facilities to add/change the courses/locations/dates.


Copyright © 2004 Adrian Davis.