illustrates the usage of a TSplit.
A TSplit is a container window that
gives its entire screen to one child at a time.
constructs a Tsplit
with 2 children and displays it along with a button
Initially one of the
two children will be displayed.
Next button is clicked,
the other child will occupy whole of the Tsplit's window.
The current child can be obtained by calling:
and a child can be set as TSplit's current child by calling:
Two views of the application while it is running are shown in
the following images:
The TSplit has two children, each a color picture.
One picture is rare stamp, other other a windmill.
The images are from files in the portable bitmap (pbm) format.
A VBT can be made from a pbm file using the code given in the
- Overlay 1
- Overlay 2
Picture prepares two VBTs
for easy inclusion into a Modula-3 program.