Changeset 489 for cprs/branches/tmg-cprs/CPRS-Chart/fFrame.pas
- Timestamp:
- Sep 11, 2008, 7:23:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/fFrame.pas
r487 r489 373 373 EnduringPtSelSplitterPos: integer; 374 374 SkinAtStartup : boolean; //kt 9/8/08 375 SkinChanged : boolean; //kt 9/8/08 375 376 CurrentSkinFile : string; //kt 9/8/08 376 {$IFDEF USE_SKINS}377 SkinManager : TipSkinManager;378 {$ENDIF}379 377 procedure ActivateCurrentSkin; //kt 9/8/08 380 378 procedure InactivateSkin; //kt 9/8/08 … … 415 413 uToolsMaxed, uToolsWarned: boolean; 416 414 boolTMGPatchInstalled: boolean; //elh 6/20/08 415 {$IFDEF USE_SKINS} 416 SkinManager : TipSkinManager; 417 {$ENDIF} 417 418 418 419 const … … 572 573 AnAddr: Pointer; 573 574 ErrMsg: string; 575 temp : integer; 574 576 begin 575 577 Application.NormalizeTopMosts; … … 600 602 FCreateProgress := FCP_FORMS; 601 603 Close; 604 end 605 else if E.Message = 'Cannot focus a disabled or invisible window' then begin 606 i := 1; // do nothing 602 607 end 603 608 else Application.ShowException(E); … … 827 832 SkinManager := TipSkinManager.Create(self); 828 833 {$ENDIF} 834 SkinChanged := false; 829 835 SkinAtStartup := CPRSChartINI.ReadBool('Skin','Load At Startup',false); 830 836 CurrentSkinFile := CPRSChartINI.ReadString('Skin','Default Skin','TMG_Extra\Skins\ICQ_Longhorn_v.1.2.ipz'); … … 1005 1011 begin 1006 1012 {$IFDEF USE_SKINS} 1013 if SkinChanged = true then begin 1014 MessageDlg('For now, skins may be changed only ONCE'+#10+#13+ 1015 'before restarting CPRS. Thank you.',mtInformation,[mbOK],0); 1016 exit; 1017 end; 1018 SkinChanged := true; 1007 1019 SkinManager.SkinFile := ExtractFilePath (Application.ExeName) + CurrentSkinFile; 1008 1020 if FileExists(SkinManager.SkinFile)=false then begin … … 1220 1232 uTabColorsList.Free; 1221 1233 CPRSChartINI.WriteInteger('TAB_POSITION','Tab Location',integer(tabPage.TabPosition)); 1234 CPRSChartINI.WriteBool('Skin','Load At Startup',SkinAtStartup); //kt 9/11/08 1222 1235 //kt --- end mod --- 1223 1236 … … 5068 5081 end; 5069 5082 5070 5071 5072 5073 initialization 5083 initialization 5074 5084 5075 5085 finalization
Note:
See TracChangeset
for help on using the changeset viewer.