- Timestamp:
- Jul 6, 2008, 8:20:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.