Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/Templates
- Timestamp:
- Jul 6, 2008, 8:20:14 PM (16 years ago)
- 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 25 25 Top = 0 26 26 Width = 632 27 Height = 3 8327 Height = 375 28 28 VertScrollBar.Tracking = True 29 29 Align = alClient … … 36 36 TabOrder = 0 37 37 end 38 object pnlBottom: T Panel38 object pnlBottom: TScrollBox 39 39 Left = 0 40 Top = 3 8340 Top = 375 41 41 Width = 632 42 Height = 3 042 Height = 38 43 43 Align = alBottom 44 44 TabOrder = 1 45 DesignSize = (46 63247 30)48 45 object lblFootnote: TStaticText 49 46 Left = 196 50 Top = 947 Top = 7 51 48 Width = 134 52 49 Height = 17 … … 57 54 object btnCancel: TButton 58 55 Left = 551 59 Top = 556 Top = 3 60 57 Width = 75 61 58 Height = 21 62 Anchors = [akTop, akRight]63 59 Cancel = True 64 60 Caption = 'Cancel' … … 68 64 object btnOK: TButton 69 65 Left = 472 70 Top = 566 Top = 3 71 67 Width = 75 72 68 Height = 21 73 Anchors = [akTop, akRight]74 69 Caption = 'OK' 75 70 ModalResult = 1 … … 79 74 object btnAll: TButton 80 75 Left = 6 81 Top = 576 Top = 3 82 77 Width = 75 83 78 Height = 21 … … 88 83 object btnNone: TButton 89 84 Left = 86 90 Top = 585 Top = 3 91 86 Width = 75 92 87 Height = 21 … … 97 92 object btnPreview: TButton 98 93 Left = 360 99 Top = 594 Top = 3 100 95 Width = 75 101 96 Height = 21 -
cprs/branches/foia-cprs/CPRS-Chart/Templates/fTemplateDialog.pas
r459 r460 10 10 TfrmTemplateDialog = class(TForm) 11 11 sbMain: TScrollBox; 12 pnlBottom: T Panel;12 pnlBottom: TScrollBox; 13 13 btnCancel: TButton; 14 14 btnOK: TButton; … … 42 42 FCheck4Required: boolean; 43 43 FSilent: boolean; 44 procedure SizeFormToCancelBtn(); 44 45 procedure ChkAll(Chk: boolean); 45 46 procedure BuildCB(CBidx: integer; var Y: integer; FirstTime: boolean); … … 71 72 implementation 72 73 73 uses dShared, uConst, uTemplateFields, fRptBox, uInit ;74 uses dShared, uConst, uTemplateFields, fRptBox, uInit, rMisc; 74 75 75 76 {$R *.DFM} … … 391 392 procedure TfrmTemplateDialog.BuildCB(CBidx: integer; var Y: integer; FirstTime: boolean); 392 393 var 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; 395 396 pctrl, ctrl: TControl; 396 397 pnl: TPanel; … … 637 638 ResizeAnchoredFormToFont(Self); 638 639 FMaxPnlWidth := FontWidthPixel(sbMain.Font.Handle) * MAX_ENTRY_WIDTH; //AGP change Template Dialog to wrap at 80 instead of 74 640 SetFormPosition(Self); 641 SizeFormToCancelBtn(); 639 642 end; 640 643 … … 738 741 begin 739 742 Application.OnShowHint := FOldHintEvent; 743 SaveUserBounds(Self); 744 end; 745 746 procedure TfrmTemplateDialog.SizeFormToCancelBtn; 747 const 748 RIGHT_MARGIN = 12; 749 var 750 minWidth : integer; 751 begin 752 minWidth := btnCancel.Left + btnCancel.Width + RIGHT_MARGIN; 753 if minWidth > Self.Width then 754 Self.Width := minWidth; 740 755 end; 741 756 -
cprs/branches/foia-cprs/CPRS-Chart/Templates/uTemplateFields.pas
r459 r460 918 918 edt.Text := s; 919 919 end; 920 edt.SelStart := edt.GetTextLen; 920 edt.SelStart := edt.GetTextLen; 921 921 end; 922 922
Note:
See TracChangeset
for help on using the changeset viewer.