GRIDPLUS2 - 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.

Example 7 is a functional application intended to demonstrate the GRIDPLUS text/entry clipboard functions, text find facilities, enhanced menu options and window resizing.

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 toplevel window creation and use of the "Widget Grid" ("&w") widget type.

Example 4

This is an example to demonstrate the use of GRIDPLUS notebook, images and nested widget grids.

Example 5

This is an example of a complete "Phonebook" application, based on a gpdb/TDBC based SQL 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, 6 and 7.

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 gpdb/TDBC based SQL 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 button to create a toolbar, and is also another demonstration which uses GRIDPLUS optionsets 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.

Example 7

This is an example of a complete text editor application. This example is mainly intended to demonstrate the GRIDPLUS entry/text clipboard commands, text find facilities, enhanced menu options and window resizing.


Copyright © 2015 Adrian Davis.