![]() |
CCP4i: Graphical User Interface |
Documentation for Programmers | |
CreateLabinLine |
![]() ![]() ![]() |
CreateLabinLine - draw a line for the user to select labelled columns from an input file
CreateLabinLine line_id message_text filenameVar label column_labelVar priority_name_list
Optional Arguments:
-sigma label2 column_labelVar2 priority_name_list2
-help help_target
-toggle_display controlVar status control_value_list
Create a line which enables the user to select labelled columns from a list of the appropriate columns extracted from the input file. Return the id of the line line_id. The line is drawn with a text label label and the message message_text will appear in the message line when the cursor is over the input widgets in the line. filenameVar is the name of the variable which will contain the name of the input file. When an input file is selected, it is read and the names of the labelled columns are stored in the CCP4i program.
CreateLabelLine will create one or (if the -sigma argument is used) two menus which list all labelled columns in the input MTZ file of the appropriate type for the variable column_labelVar. The appropriate type depends on the data type of the variable which is set in the taskname.def file. The first column label of the appropriate type will be set as the default value for column_labelVar unless the MTZ file contains a label with one of the names listed in priority_name_list in which case it is set as the default. The priority_name_list can be useful if, for example, you know the user probably wants to select the FP but is not useful in other instances when it can be set to "".