Tkgraph Templates

We've spent quite a bit of time getting our current Canvas to look like it does now. It would be sad if we had a computer failure and lost everything. It would also be time consuming to recreate the entire Canvas if we wanted to change one small thing like a Label font.

Luckily, Tkgraph allows you to save the current layout of the Canvas so that you can load it back in later. This allows you to back up your work so that you can come back and continue on it later. Let's try it out.

Close the Tkgraph Control Panel. We won't be using it for the rest of this tutorial. Now go to the File menu at the top of the Tkgraph main display. Under the File menu is en entry Save Template. Select this. The file selection dialog will open up. Choose a location and a filename for the template. By convention, all Tkgraph templates are stored with a .tpl extension. When you've entered a filename for the template, hit OK. Your Canvas layout has now been saved, data, images and all!

Loading a template is just as easy. The one thing you have to watch is that your Canvas should be empty before you load a template. The CP (clear page) button on the shortuct toolbar can help with this. Don't use it, though. Instead, exit Tkgraph completely. Go to the File menu and select Close. This will exit Tkgraph. Start up Tkgraph again. After it initializes, go to the File menu and select Load Template. This will open up the file selection dialog again. Locate the template that you saved earlier and press OK on the file selection dialog. The cursor on the Tkgraph Canvas will change to a watch while the Template is being loaded. After a few seconds, the Canvas that you had saved earlier reappears. You can now make changes to it just as you did before.


[Prev] [Top] [Next]