Ignore:
Timestamp:
May 7, 2015, 12:34:29 PM (9 years ago)
Author:
healthsevak
Message:

Updating the working copy to CPRS version 28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/fDeviceSelect.pas

    r830 r1679  
    6767              end;
    6868          end;
    69         if Sender <> frmFrame then
    70           begin
     69
    7170            DefPrt := User.CurrentPrinter;
    7271            if DefPrt = '' then DefPrt := GetDefaultPrinter(User.Duz, Encounter.Location);
     
    9493              end;
    9594           if ACaption<>'' then frmDeviceSelect.Caption:=ACaption;
    96           end
    97          else
    98           begin
    99             frmDeviceSelect.Caption := 'Print Device Selection';
    100             cboDevice.InitLongList('');
    101           end;
     95         
    10296        ShowModal;
    10397        Result := ADevice;
     
    128122  end;
    129123  ADevice := cboDevice.Items[cboDevice.ItemIndex];
    130   if chkDefault.Checked then SaveDefaultPrinter(Piece(cboDevice.ItemID, ';', 1));
     124  if chkDefault.Checked then begin
     125   SaveDefaultPrinter(Piece(cboDevice.ItemID, ';', 1));
     126   User.CurrentPrinter := cboDevice.ItemID;
     127  end;
    131128  Close;
    132129end;
     
    135132begin
    136133  inherited;
    137   ADevice := '';
     134  ADevice := User.CurrentPrinter;
    138135  Close;
    139136end;
Note: See TracChangeset for help on using the changeset viewer.