- Timestamp:
- Mar 31, 2010, 5:06:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/Options/fOptionsOther.pas
r667 r729 70 70 public 71 71 { Public declarations } 72 procedure SaveTabColors(ColorsList : TStringList); //kt 72 73 end; 73 74 … … 80 81 81 82 procedure DialogOptionsOther(topvalue, leftvalue, fontsize: integer; var actiontype: Integer); 82 procedure SetTabPosition(Position : TTabPosition); 83 procedure SetTabPosition(Position : TTabPosition); //kt 83 84 84 85 implementation … … 87 88 88 89 uses 89 rOptions, uOptions, rCore, rSurgery, uConst, fMeds, fFrame; 90 rOptions, uOptions, rCore, rSurgery, uConst, fMeds, fFrame, 91 uTMGOptions //kt 92 ; 90 93 91 94 procedure DialogOptionsOther(topvalue, leftvalue, fontsize: integer; var actiontype: Integer); … … 124 127 begin 125 128 cboTabColors.Items.Assign(frmFrame.tabPage.Tabs); //kt 8/09 126 //cboTabColors.Items.Assign( uTabColorsList); //kt added8808129 //cboTabColors.Items.Assign(TabColorsList); //kt added8808 127 130 cboTabColors.ItemIndex := 0; //kt 128 131 cboTab.Items.Assign(rpcGetOtherTabs); //kt 129 132 cboTabColorsChange(nil); //kt 130 cbEnableTabColors.Checked := uTabColorsEnabled; //kt 8/09133 cbEnableTabColors.Checked := TabColorsEnabled; //kt 8/09 131 134 //if (cboTab.Items.IndexOf('Surgery') > -1) and (not ShowSurgeryTab) then <-- original line. //kt 8/8/2007 132 135 if (cboTab.Items.IndexOf(DKLangConstW('fOptionsOther_Surgery')) > -1) and (not ShowSurgeryTab) then //kt added 8/8/2007 … … 199 202 procedure TfrmOptionsOther.FormCreate(Sender: TObject); 200 203 begin 201 cbEnableTabColors.checked := uTabColorsEnabled;204 cbEnableTabColors.checked := TabColorsEnabled; 202 205 FStartDT := 0; 203 206 FStopDT := 0; … … 313 316 314 317 procedure SetTabPosition(Position : TTabPosition); 318 //NOTE: Don't make this a member function of TFrmOptionsOther, becuase frmFrame needs 319 // to be able to call it, even if the OtionsOther form is not instantiated. 315 320 //kt added 8/8/08 316 321 begin … … 322 327 tpRight : frmFrame.tabPage.Align := alRight; 323 328 end; {case} 329 uTMGOptions.WriteInteger('Tab Location',integer(frmFrame.tabPage.TabPosition)); 330 end; 331 332 procedure TfrmOptionsOther.SaveTabColors(ColorsList : TStringList); 333 //kt added 8/8/08 Entire function 334 var i : integer; 335 begin 336 for i := 0 to ColorsList.Count-1 do begin 337 uTMGOptions.WriteInteger('Tab '+IntToStr(i)+' Color',longword(ColorsList.Objects[i])); 338 end; 339 uTMGOptions.WriteBool('TAB_COLORS ENABLE',TabColorsEnabled); //kt 8/09 324 340 end; 325 341 … … 345 361 if selIndex < 0 then exit; 346 362 cboTabColors.Items.Objects[selIndex] := pointer(ColorDialog.Color); 347 uTabColorsList.Objects[selIndex] := pointer(ColorDialog.Color); 363 TabColorsList.Objects[selIndex] := pointer(ColorDialog.Color); 364 uTMGOptions.WriteInteger('Tab '+IntToStr(selIndex)+' Color',longword(TabColorsList.Objects[selIndex])); 348 365 end; 349 366 end; … … 352 369 //kt added 353 370 begin 354 uTabColorsEnabled := cbEnableTabColors.Checked; //elh 01/12/10371 TabColorsEnabled := cbEnableTabColors.Checked; //elh 01/12/10 355 372 frmFrame.tabPage.OwnerDraw := cbEnableTabColors.Checked; //elh 01/12/10 356 //cboTabColors.Enabled := uTabColorsEnabled; 357 //lblEditTabColor.Enabled := uTabColorsEnabled; 358 //lblTabColors.Enabled := uTabColorsEnabled; 359 //pnlShowColor.Enabled := uTabColorsEnabled; 373 cboTabColors.Enabled := TabColorsEnabled; 374 lblEditTabColor.Enabled := TabColorsEnabled; 375 lblTabColors.Enabled := TabColorsEnabled; 376 pnlShowColor.Enabled := TabColorsEnabled; 377 uTMGOptions.WriteBool('TAB_COLORS ENABLE',TabColorsEnabled); //kt 3/8/10 360 378 end; 361 379
Note:
See TracChangeset
for help on using the changeset viewer.