Changeset 729 for cprs/branches/tmg-cprs/CPRS-Chart/Options
- Timestamp:
- Mar 31, 2010, 5:06:56 PM (15 years ago)
- Location:
- cprs/branches/tmg-cprs/CPRS-Chart/Options
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/Options/fOptions.dfm
r541 r729 1 1 object frmOptions: TfrmOptions 2 Left = 3 343 Top = 2292 Left = 321 3 Top = 155 4 4 Width = 435 5 5 Height = 397 … … 87 87 Height = 323 88 88 HelpContext = 9999 89 ActivePage = ts Notes89 ActivePage = tsAppearance 90 90 Align = alClient 91 91 TabOrder = 0 … … 1793 1793 State = cbChecked 1794 1794 TabOrder = 1 1795 OnClick = cbSkinAtStartupClick 1795 1796 end 1796 1797 object btnMoreSkins: TButton -
cprs/branches/tmg-cprs/CPRS-Chart/Options/fOptions.pas
r490 r729 172 172 procedure FormShow(Sender: TObject); 173 173 procedure lbSkinsKeyPress(Sender: TObject; var Key: Char); 174 procedure btnDisableSkinClick(Sender: TObject); //kt added 6/29/07 174 procedure btnDisableSkinClick(Sender: TObject); 175 procedure cbSkinAtStartupClick(Sender: TObject); //kt added 6/29/07 175 176 private 176 177 { Private declarations } … … 209 210 rOptions, rCore, uCore, uOptions, UBACore, fFrame, 210 211 //fTestDialog; 211 212 212 //kt mod 6/29/07 ----- 213 213 ShellAPI, //kt 9/8/08 214 uTMGOptions, //kt 2/10/10 214 215 ORNet, //allows access to RPCBrokerV 215 216 TntForms, TntSystem, TntSysUtils; … … 340 341 341 342 //kt begin modification 6/29/07 --------------- 342 343 343 // Fill cbLanguage with available languages 344 344 // Note: LangManager was populated at form creation of fFrame … … 347 347 cbLanguage.ItemIndex := LangManager.LanguageIndex; 348 348 //kt end modification 6/29/07 --------------- 349 350 349 cbSkinAtStartup.Checked := frmFrame.SkinAtStartup; //kt 9/8/08 351 352 350 end; 353 351 … … 867 865 procedure TfrmOptions.cbLanguageChange(Sender: TObject); //kt added 6/29/07 868 866 var iIndex: Integer; 869 CPRSChartINI: TINIFile;870 867 begin 871 868 iIndex := cbLanguage.ItemIndex; … … 881 878 frmFrame.RenameTabs; //Resets names of tabs to correct translation //kt 882 879 frmFrame.mnuFileRefreshClick(self); //elh 6/23/08 883 CPRSChartINI := TINIFile.Create(ExtractFilePath(ParamStr(0)) + 'CPRSChart.ini'); // Write to INI elh 6/23/08 884 CPRSChartINI.WriteInteger('Options','Language',LangManager.LanguageID); 885 CPRSChartINI.Free; 880 uTMGOptions.WriteInteger('Language',LangManager.LanguageID); 886 881 end; 887 882 … … 945 940 end; 946 941 942 procedure TfrmOptions.cbSkinAtStartupClick(Sender: TObject); 943 begin 944 frmFrame.SkinAtStartup := cbSkinAtStartup.Checked; 945 uTMGOptions.WriteBool('Load Skin At Startup',frmFrame.SkinAtStartup); //kt 9/11/08 946 end; 947 947 948 end. 948 949 -
cprs/branches/tmg-cprs/CPRS-Chart/Options/fOptionsOther.dfm
r667 r729 1 1 object frmOptionsOther: TfrmOptionsOther 2 Left = 5 172 Left = 522 3 3 Top = 143 4 4 Hint = 'Use system default settings' … … 9 9 Caption = 'Other Parameters' 10 10 ClientHeight = 463 11 ClientWidth = 3 9111 ClientWidth = 386 12 12 Color = clBtnFace 13 13 Font.Charset = DEFAULT_CHARSET … … 89 89 Left = 0 90 90 Top = 430 91 Width = 3 9191 Width = 386 92 92 Height = 33 93 93 HelpContext = 9110 … … 99 99 Left = 0 100 100 Top = 0 101 Width = 3 91101 Width = 386 102 102 Height = 2 103 103 Align = alTop -
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.