Ignore:
Timestamp:
Jul 6, 2008, 8:20:14 PM (16 years ago)
Author:
Kevin Toppenberg
Message:

Uploading from OR_30_258

Location:
cprs/branches/foia-cprs/CPRS-Chart/Templates
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/foia-cprs/CPRS-Chart/Templates/fTemplateDialog.dfm

    r459 r460  
    2525    Top = 0
    2626    Width = 632
    27     Height = 383
     27    Height = 375
    2828    VertScrollBar.Tracking = True
    2929    Align = alClient
     
    3636    TabOrder = 0
    3737  end
    38   object pnlBottom: TPanel
     38  object pnlBottom: TScrollBox
    3939    Left = 0
    40     Top = 383
     40    Top = 375
    4141    Width = 632
    42     Height = 30
     42    Height = 38
    4343    Align = alBottom
    4444    TabOrder = 1
    45     DesignSize = (
    46       632
    47       30)
    4845    object lblFootnote: TStaticText
    4946      Left = 196
    50       Top = 9
     47      Top = 7
    5148      Width = 134
    5249      Height = 17
     
    5754    object btnCancel: TButton
    5855      Left = 551
    59       Top = 5
     56      Top = 3
    6057      Width = 75
    6158      Height = 21
    62       Anchors = [akTop, akRight]
    6359      Cancel = True
    6460      Caption = 'Cancel'
     
    6864    object btnOK: TButton
    6965      Left = 472
    70       Top = 5
     66      Top = 3
    7167      Width = 75
    7268      Height = 21
    73       Anchors = [akTop, akRight]
    7469      Caption = 'OK'
    7570      ModalResult = 1
     
    7974    object btnAll: TButton
    8075      Left = 6
    81       Top = 5
     76      Top = 3
    8277      Width = 75
    8378      Height = 21
     
    8883    object btnNone: TButton
    8984      Left = 86
    90       Top = 5
     85      Top = 3
    9186      Width = 75
    9287      Height = 21
     
    9792    object btnPreview: TButton
    9893      Left = 360
    99       Top = 5
     94      Top = 3
    10095      Width = 75
    10196      Height = 21
  • cprs/branches/foia-cprs/CPRS-Chart/Templates/fTemplateDialog.pas

    r459 r460  
    1010  TfrmTemplateDialog = class(TForm)
    1111    sbMain: TScrollBox;
    12     pnlBottom: TPanel;
     12    pnlBottom: TScrollBox;
    1313    btnCancel: TButton;
    1414    btnOK: TButton;
     
    4242    FCheck4Required: boolean;
    4343    FSilent: boolean;
     44    procedure SizeFormToCancelBtn();
    4445    procedure ChkAll(Chk: boolean);
    4546    procedure BuildCB(CBidx: integer; var Y: integer; FirstTime: boolean);
     
    7172implementation
    7273
    73 uses dShared, uConst, uTemplateFields, fRptBox, uInit;
     74uses dShared, uConst, uTemplateFields, fRptBox, uInit, rMisc;
    7475
    7576{$R *.DFM}
     
    391392procedure TfrmTemplateDialog.BuildCB(CBidx: integer; var Y: integer; FirstTime: boolean);
    392393var
    393   bGap, Indent, i, idx, idx2, p1, p2: integer;
    394   EID, ID, PID, DlgProps, tmp, txt, tmpID, ObjID: string;
     394  bGap, Indent, i, idx, p1, p2: integer;
     395  EID, ID, PID, DlgProps, tmp, txt, tmpID: string;
    395396  pctrl, ctrl: TControl;
    396397  pnl: TPanel;
     
    637638  ResizeAnchoredFormToFont(Self);
    638639  FMaxPnlWidth := FontWidthPixel(sbMain.Font.Handle) * MAX_ENTRY_WIDTH; //AGP change Template Dialog to wrap at 80 instead of 74
     640  SetFormPosition(Self);
     641  SizeFormToCancelBtn();
    639642end;
    640643
     
    738741begin
    739742  Application.OnShowHint := FOldHintEvent;
     743  SaveUserBounds(Self);
     744end;
     745
     746procedure TfrmTemplateDialog.SizeFormToCancelBtn;
     747const
     748  RIGHT_MARGIN = 12;
     749var
     750  minWidth : integer;
     751begin
     752  minWidth := btnCancel.Left + btnCancel.Width + RIGHT_MARGIN;
     753  if minWidth > Self.Width then
     754    Self.Width := minWidth;
    740755end;
    741756
  • cprs/branches/foia-cprs/CPRS-Chart/Templates/uTemplateFields.pas

    r459 r460  
    918918      edt.Text := s;
    919919  end;
    920   edt.SelStart := edt.GetTextLen;
     920  edt.SelStart := edt.GetTextLen;   
    921921end;
    922922
Note: See TracChangeset for help on using the changeset viewer.