Changeset 667 for cprs/branches/tmg-cprs/CPRS-Chart/fFrame.pas
- Timestamp:
- Jan 12, 2010, 3:30:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/CPRS-Chart/fFrame.pas
r541 r667 976 976 //kt replace later... CreateTab(CT_IMAGES, 'Images'); //kt 8/19/05 977 977 LoadTabColors(CPRSChartINI,uTabColorsList); //kt added 8/8/08 978 978 TabPage.OwnerDraw := uTabColorsEnabled; 979 979 ShowHideChartTabMenus(mnuViewChart); 980 980 // We defer calling LoadUserPreferences to UMInitiate, so that the font sizing … … 3640 3640 // NF_FLAGGED_OI_EXP_INPT : AlertType := 'Flagged Orderable Item (INPT)'; <-- original line. //kt 7/17/2007 3641 3641 NF_FLAGGED_OI_EXP_INPT : AlertType := DKLangConstW('fFrame_Flagged_Orderable_Item_xINPTx'); //kt added 7/17/2007 3642 // NF_FLAGGED_OI_EXP_OUTPT : AlertType := 'Flagged Orderable Item (OUTPT)'; <-- original line. //kt 7/17/20073643 NF_FLAGGED_OI_EXP_OUTPT : AlertType := DKLangConstW('fFrame_Flagged_Orderable_Item_xOUTPTx'); //kt added 7/17/20073642 // NF_FLAGGED_OI_EXP_OUTPT : AlertType := 'Flagged Orderable Item (OUTPT)'; <-- original line. //kt2 7/17/2007 3643 NF_FLAGGED_OI_EXP_OUTPT : AlertType := DKLangConstW('fFrame_Flagged_Orderable_Item_xOUTPTx'); //kt2 added 7/17/2007 3644 3644 else 3645 3645 Exit; … … 4989 4989 //this isn't working... This is not what I want. Fix later... 4990 4990 //For now, uTabColorsEnabled should always be TRUE. 4991 Control.Canvas.FillRect(Rect); 4991 //Control.Canvas.FillRect(Rect); //elh we will try to alter the OwnerDraw property here 4992 //TabPage.OwnerDraw := uTabColorsEnabled; 4992 4993 end; 4993 4994 end; … … 5044 5045 5045 5046 begin 5047 //NOTE: Something in this function is causing MS Vista to not 5048 //show tab text. I am commenting a few items to test at home on 5049 //a 64-bit Vista machine. //elh 01-11-10 5046 5050 oRect := Rect; 5047 5051 inactiveColor := Darken(Color,75); //75% … … 5054 5058 end; 5055 5059 5056 Control.Canvas.Font.Name := 'Tahoma'; 5060 Control.Canvas.Font.Name := 'Tahoma'; //Test4 5057 5061 if Active then begin 5058 Control.Canvas.Font.Style := Control.Canvas.Font.Style + [fsBold]; 5059 Control.Canvas.Font.Color := clBlack 5062 Control.Canvas.Font.Style := Control.Canvas.Font.Style + [fsBold]; //Test3 5063 Control.Canvas.Font.Color := clBlack //Test1 5060 5064 end else begin 5061 Control.Canvas.Font.Style := Control.Canvas.Font.Style - [fsBold]; 5065 Control.Canvas.Font.Style := Control.Canvas.Font.Style - [fsBold]; //Test3 5062 5066 //Control.Canvas.Font.Color := clBlack 5063 Control.Canvas.Font.Color := clWhite; 5064 end; 5065 5067 Control.Canvas.Font.Color := clWhite; //Test1 5068 end; 5069 5066 5070 if (TabControl.TabPosition = tpLeft) or (TabControl.TabPosition = tpRight) then begin 5067 5071 … … 5099 5103 5100 5104 if Active then begin 5101 Control.Canvas.Brush.Color := Color; 5105 Control.Canvas.Brush.Color := Color; //Test2 5102 5106 end else begin 5103 Control.Canvas.Brush.Color := inactiveColor; 5107 Control.Canvas.Brush.Color := inactiveColor; //Test2 5104 5108 end; 5105 5109 Control.Canvas.FillRect(Rect);
Note:
See TracChangeset
for help on using the changeset viewer.