Changeset 473 for cprs/branches/tmg-cprs/CPRS-Chart/Options
- Timestamp:
- Aug 8, 2008, 8:34:55 PM (16 years ago)
- Location:
- cprs/branches/tmg-cprs/CPRS-Chart/Options
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/Options/fOptions.dfm
r453 r473 86 86 Height = 323 87 87 HelpContext = 9999 88 ActivePage = ts Language88 ActivePage = tsCoverSheet 89 89 Align = alClient 90 90 TabOrder = 0 … … 1753 1753 end 1754 1754 object DKLanguageController1: TDKLanguageController 1755 Left = 1361756 Top = 2 401755 Left = 80 1756 Top = 280 1757 1757 LangData = { 1758 1758 0A0066726D4F7074696F6E73010200000001000000070043617074696F6E0200 -
cprs/branches/tmg-cprs/CPRS-Chart/Options/fOptionsOther.dfm
r453 r473 1 1 object frmOptionsOther: TfrmOptionsOther 2 Left = 3413 Top = 962 Left = 298 3 Top = 189 4 4 Hint = 'Use system default settings' 5 5 HelpContext = 9110 … … 9 9 Caption = 'Other Parameters' 10 10 ClientHeight = 436 11 ClientWidth = 3 2911 ClientWidth = 391 12 12 Color = clBtnFace 13 13 Font.Charset = DEFAULT_CHARSET … … 26 26 object lblMedsTab: TLabel 27 27 Left = 7 28 Top = 1 2129 Width = 1 3530 Height = 2628 Top = 168 29 Width = 178 30 Height = 17 31 31 Hint = 'Set date ranges for displaying medication orders on Meds tab.' 32 32 Caption = 'Set date range for Meds tab display:' … … 44 44 object Bevel1: TBevel 45 45 Left = 1 46 Top = 1 1047 Width = 3 2748 Height = 246 Top = 150 47 Width = 392 48 Height = 3 49 49 end 50 50 object lblEncAppts: TLabel … … 62 62 Left = 1 63 63 Top = 256 64 Width = 3 2764 Width = 392 65 65 Height = 2 66 end 67 object Label1: TLabel 68 Left = 232 69 Top = 27 70 Width = 106 71 Height = 13 72 Caption = 'Select Tab Positioning' 73 end 74 object Label2: TLabel 75 Left = 8 76 Top = 104 77 Width = 83 78 Height = 13 79 Caption = 'Adjust Tab Colors' 80 end 81 object Label3: TLabel 82 Left = 232 83 Top = 104 84 Width = 138 85 Height = 13 86 Caption = '(Click box below to edit color)' 66 87 end 67 88 object pnlBottom: TPanel 68 89 Left = 0 69 90 Top = 403 70 Width = 3 2991 Width = 391 71 92 Height = 33 72 93 HelpContext = 9110 … … 78 99 Left = 0 79 100 Top = 0 80 Width = 3 29101 Width = 391 81 102 Height = 2 82 103 Align = alTop … … 108 129 object stStart: TStaticText 109 130 Left = 7 110 Top = 1 51131 Top = 191 111 132 Width = 55 112 133 Height = 17 … … 115 136 end 116 137 object stStop: TStaticText 117 Left = 7118 Top = 207138 Left = 199 139 Top = 191 119 140 Width = 55 120 141 Height = 17 … … 124 145 object dtStart: TORDateBox 125 146 Left = 7 126 Top = 170127 Width = 1 87147 Top = 210 148 Width = 178 128 149 Height = 21 129 150 TabOrder = 4 … … 135 156 end 136 157 object dtStop: TORDateBox 137 Left = 8138 Top = 2 25158 Left = 200 159 Top = 209 139 160 Width = 186 140 161 Height = 21 … … 148 169 Left = 8 149 170 Top = 6 150 Width = 52171 Width = 62 151 172 Height = 17 152 173 Caption = 'Chart tabs' 174 Font.Charset = DEFAULT_CHARSET 175 Font.Color = clWindowText 176 Font.Height = -11 177 Font.Name = 'MS Sans Serif' 178 Font.Style = [fsBold] 179 ParentFont = False 153 180 TabOrder = 0 154 181 end 155 182 object cboTab: TORComboBox 156 183 Left = 8 157 Top = 51184 Top = 43 158 185 Width = 217 159 186 Height = 21 … … 180 207 object chkLastTab: TCheckBox 181 208 Left = 8 182 Top = 82183 Width = 312209 Top = 74 210 Width = 233 184 211 Height = 21 185 212 HelpContext = 9112 … … 313 340 OnClick = btnEncDefaultsClick 314 341 end 342 object TabPositionComboBox: TComboBox 343 Left = 232 344 Top = 43 345 Width = 145 346 Height = 21 347 ItemHeight = 13 348 ItemIndex = 0 349 TabOrder = 23 350 Text = 'Tabs on BOTTOM' 351 OnChange = TabPositionComboBoxChange 352 Items.Strings = ( 353 'Tabs on BOTTOM' 354 'Tabs on TOP' 355 'Tabs on LEFT' 356 'Tabs on RIGHT') 357 end 358 object pnlShowColor: TPanel 359 Left = 232 360 Top = 120 361 Width = 145 362 Height = 22 363 BevelInner = bvLowered 364 TabOrder = 24 365 OnClick = pnlShowColorClick 366 end 367 object cboTabColors: TComboBox 368 Left = 8 369 Top = 120 370 Width = 217 371 Height = 21 372 ItemHeight = 13 373 ItemIndex = 0 374 TabOrder = 25 375 Text = ' ' 376 OnChange = cboTabColorsChange 377 Items.Strings = ( 378 ' ') 379 end 315 380 object DKLanguageController1: TDKLanguageController 316 381 Left = 152 317 Top = 224382 Top = 8 318 383 LangData = { 319 384 0F0066726D4F7074696F6E734F74686572010300000002000000070043617074 320 696F6E03000000080048656C7046696C6501000000040048696E7401 1B000000385 696F6E03000000080048656C7046696C6501000000040048696E740122000000 321 386 0A006C626C4D656473546162010200000005000000070043617074696F6E0400 322 387 0000040048696E740006006C626C546162010100000006000000070043617074 … … 342 407 6E000E00737453746F70456E6341707074730101000000190000000700436170 343 408 74696F6E000E0062746E456E6344656661756C747301010000001A0000000700 344 43617074696F6E00} 409 43617074696F6E001300546162506F736974696F6E436F6D626F426F78010200 410 00001C00000005004974656D731B0000000400546578740006004C6162656C31 411 01010000001D000000070043617074696F6E0006004C6162656C320101000000 412 1E000000070043617074696F6E000C00706E6C53686F77436F6C6F7200000B00 413 436F6C6F724469616C6F67000006004C6162656C3301010000001F0000000700 414 43617074696F6E000C0063626F546162436F6C6F72730000} 415 end 416 object ColorDialog: TColorDialog 417 Left = 192 418 Top = 8 345 419 end 346 420 end -
cprs/branches/tmg-cprs/CPRS-Chart/Options/fOptionsOther.pas
r453 r473 39 39 btnEncDefaults: TButton; 40 40 DKLanguageController1: TDKLanguageController; 41 TabPositionComboBox: TComboBox; 42 Label1: TLabel; 43 Label2: TLabel; 44 pnlShowColor: TPanel; 45 ColorDialog: TColorDialog; 46 Label3: TLabel; 47 cboTabColors: TComboBox; 41 48 procedure FormShow(Sender: TObject); 42 49 procedure btnOKClick(Sender: TObject); … … 50 57 procedure txtEncStopExit(Sender: TObject); 51 58 procedure btnEncDefaultsClick(Sender: TObject); 59 procedure TabPositionComboBoxChange(Sender: TObject); 60 procedure cboTabColorsChange(Sender: TObject); 61 procedure pnlShowColorClick(Sender: TObject); 52 62 private 53 63 { Private declarations } … … 66 76 ENC_MAX_LIMIT = 999; 67 77 68 78 69 79 procedure DialogOptionsOther(topvalue, leftvalue, fontsize: integer; var actiontype: Integer); 80 procedure SetTabPosition(Position : TTabPosition); 70 81 71 82 implementation … … 74 85 75 86 uses 76 rOptions, uOptions, rCore, rSurgery, uConst, fMeds ;87 rOptions, uOptions, rCore, rSurgery, uConst, fMeds, fFrame; 77 88 78 89 procedure DialogOptionsOther(topvalue, leftvalue, fontsize: integer; var actiontype: Integer); … … 110 121 values, tab: string; 111 122 begin 112 cboTab.Items.Assign(rpcGetOtherTabs); 123 cboTabColors.Items.Assign(uTabColorsList); //kt added8808 124 cboTabColors.ItemIndex := 0; //kt 125 cboTab.Items.Assign(rpcGetOtherTabs); //kt 126 cboTabColorsChange(nil); //kt 113 127 //if (cboTab.Items.IndexOf('Surgery') > -1) and (not ShowSurgeryTab) then <-- original line. //kt 8/8/2007 114 128 if (cboTab.Items.IndexOf(DKLangConstW('fOptionsOther_Surgery')) > -1) and (not ShowSurgeryTab) then //kt added 8/8/2007 … … 282 296 end; 283 297 298 procedure TfrmOptionsOther.TabPositionComboBoxChange(Sender: TObject); 299 //kt added 8/8/08 300 begin 301 Case TabPositionComboBox.ItemIndex of 302 0 : SetTabPosition(tpBottom); 303 1 : SetTabPosition(tpTop); 304 2 : SetTabPosition(tpLeft); 305 3 : SetTabPosition(tpRight); 306 end; {case} 307 end; 308 309 procedure SetTabPosition(Position : TTabPosition); 310 //kt added 8/8/08 311 begin 312 frmFrame.tabPage.TabPosition := Position; 313 Case Position of 314 tpBottom : frmFrame.tabPage.Align := alBottom; 315 tpTop: frmFrame.tabPage.Align := alTop; 316 tpLeft: frmFrame.tabPage.Align := alLeft; 317 tpRight : frmFrame.tabPage.Align := alRight; 318 end; {case} 319 end; 320 321 322 procedure TfrmOptionsOther.cboTabColorsChange(Sender: TObject); 323 var color : TColor; 324 selIndex : integer; 325 begin 326 selIndex := cboTabColors.ItemIndex; 327 if selIndex < 0 then exit; 328 color := TColor(cboTabColors.Items.Objects[selIndex]); 329 pnlShowColor.Color := color; 330 end; 331 332 procedure TfrmOptionsOther.pnlShowColorClick(Sender: TObject); 333 //kt added 8/8/08 334 var s : string; 335 selIndex : integer; 336 begin 337 if ColorDialog.Execute then begin 338 pnlShowColor.Color := ColorDialog.Color; 339 selIndex := cboTabColors.ItemIndex; 340 if selIndex < 0 then exit; 341 cboTabColors.Items.Objects[selIndex] := pointer(ColorDialog.Color); 342 uTabColorsList.Objects[selIndex] := pointer(ColorDialog.Color); 343 end; 344 end; 345 284 346 end.
Note:
See TracChangeset
for help on using the changeset viewer.