General HydroStatics
Ship Stability Software
Command of the Week
(New or interesting aspects of GHS that you may not know about)

A Gadget

Someone had the idea that it would be nice to have a little "gadget" that pops up and shows the locations of the tank ends for the currently selected tank in Load Editor.

It takes only a few lines of GHS code to make one:

macro tk_ends
tank {LEtank}
template tk_endsT
"Aft: {TENDA}"
"Fwd: {TENDF}"
tank off

And here is how it looks:

But we can make it look better than that by using some of the color and formatting options. Here is one possibility:

How did we do it? Nothing special. Check the TEMPLATE command documentation if you're curious, and you will come up with one better than that.

Questions, comments, or requests?
Contact Creative Systems, Inc.

USA phone: 360-385-6212 Fax: 360-385-6213
Office hours: 7:00 am - 4:00 pm Pacific Time, Monday - Friday

Mailing address:
PO Box 1910
Port Townsend, WA 98368 USA

Click here for an index to this and previous COWs