![]() |
CCP4i: Graphical User Interface |
Documentation for Programmers | |
CreateLineTemplate |
![]() ![]() ![]() |
CreateLineTemplate - create a template to define the layout of a line
CreateLineTemplate template_name template
Use this command to define a line format to be used by the format keyword in CreateLine. template_name is a single word name for the template. template is a list of x positions (given as a fraction - values between 0 and 1) for the components in a line. All labels and widgets in a line are considered as components. The nth component will be placed with its left edge at the fractional position given by the nth item in the template list.
For example look at the Refmac interface. The 'Geometric Parameters' folder (at the bottom of the window) uses line templates extensively. The code is in $CCP4I_top/tasks/refmac.tcl.