Procedure

TTemplate.SetDisplayOnly

Module

uTemplates

Last Modified

7/15/2014 3:26:44 PM

Visibility

Protected

Owner

TTemplate

Declaration

procedure SetDisplayOnly(const Value: boolean);

Calls Hierarchy


TTemplate.SetDisplayOnly
 ├TTemplate.CanModify
 │ ├TTemplate.ValidID
 │ └LockTemplate
 └TTemplate.ValidID

Called-By Hierarchy


                  TTemplate.SetDisplayOnly
              TfrmTemplateEditor.cbClick┘ 
 TfrmTemplateEditor.cbDisplayOnlyClick┤   
   TfrmTemplateEditor.cbFirstLineClick┤   
 TfrmTemplateEditor.cbOneItemOnlyClick┤   
TfrmTemplateEditor.cbHideDlgItemsClick┤   
   TfrmTemplateEditor.cbHideItemsClick┤   
      TfrmTemplateEditor.cbIndentClick┤   
        TfrmTemplateEditor.cbLockClick┘   

Calls

Name Declaration Comments
TTemplate.CanModify function CanModify: boolean; -
TTemplate.ValidID function ValidID: boolean; -

Called-By

Name Declaration Comments
TfrmTemplateEditor.cbClick procedure cbClick(Sender: TCheckBox; Index: integer); -


Source

2279  procedure TTemplate.SetDisplayOnly(const Value: boolean);
2280  begin
2281    if(FDisplayOnly <> Value) and CanModify then
2282    begin
2283      with FBkup do
2284      begin
2285        if(not SavedDisplayOnly) and ValidID then
2286        begin
2287          BDisplayOnly := FDisplayOnly;
2288          SavedDisplayOnly := TRUE;
2289        end;
2290      end;
2291      FDisplayOnly := Value;
2292    end;
2293  end;