Table of Content
HAL Forum
procedure RlColKey (
real ColPos,real HeadPos,string title,void FieldName,boolean align,
string KeyName)
Description:
Creates a column (with sorting and search key) for RecordList that is being defined. Used with CGmlist, CGslist (and sometimes with CGview) windows.
Parameters:
ColPos Column position
HeadPos Header position
title Column title
FieldName Field name of the record that was defined with UseView
align Alignment: false - left, true - right
KeyName Name of the index or the sort key
event DefineWindows
begin
  SetLangMode(LangEnglish,"ENG",0);

  WindowBegin("Projects",PRLClass,CGmlist,-);
  SetWRect(20,80,650,298);
  SpawnClass(PRDClass);
  Sizeable(-1,-1,0,0);
  UseView(PRVc);
  FormName(PrintPRL);
  RecordList(4,17,-21,-39);
  RlColKey(4,1,    "Project",Code,false,Code);
  RlColKey(75,75,  "Salesman",PrSalesMan,false,PrSalesMan);
  RlColKey(131,131,"Status",StatMark,false,StatMark);
  RlColKey(171,171,"Class",PRClass,false,PRClass);
  RlColKey(211,211,"Stage",PRStage,false,PRStage);
  RlColKey(261,261,"Customer",CustCode,false,CustCode);
  RlColKey(341,341,"Name",CustName,false,CustName);
  RlColKey(471,471,"Description",Name,false,Name);
  SearchField("Search");
  BrowseSubsetButton(-40,-15);
  SpecialMenu("Project Info",'I',0,"PRInfoPRLsm");
  SpecialMenu("Search for Project",'F',6,"SearchPRLsm");
  EndWindow;
  
  return;
end;
Related topics:
««