Ignore:
Timestamp:
Jan 12, 2010, 3:30:13 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Added button to turn Colored Tabs off

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/tmg-cprs/CPRS-Chart/fFrame.pas

    r541 r667  
    976976  //kt replace later... CreateTab(CT_IMAGES,   'Images');   //kt  8/19/05
    977977  LoadTabColors(CPRSChartINI,uTabColorsList);  //kt added 8/8/08
    978 
     978  TabPage.OwnerDraw := uTabColorsEnabled;
    979979  ShowHideChartTabMenus(mnuViewChart);
    980980  //  We defer calling LoadUserPreferences to UMInitiate, so that the font sizing
     
    36403640//  NF_FLAGGED_OI_EXP_INPT          : AlertType := 'Flagged Orderable Item (INPT)';  <-- original line.  //kt 7/17/2007
    36413641    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/2007
    3643     NF_FLAGGED_OI_EXP_OUTPT         : AlertType := DKLangConstW('fFrame_Flagged_Orderable_Item_xOUTPTx'); //kt added 7/17/2007
     3642//  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
    36443644  else
    36453645    Exit;
     
    49894989    //this isn't working... This is not what I want.  Fix later...
    49904990    //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;
    49924993  end;
    49934994end;
     
    50445045
    50455046  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
    50465050    oRect    := Rect;
    50475051    inactiveColor := Darken(Color,75);  //75%
     
    50545058    end;
    50555059
    5056     Control.Canvas.Font.Name := 'Tahoma';
     5060    Control.Canvas.Font.Name := 'Tahoma';  //Test4
    50575061    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
    50605064    end else begin
    5061       Control.Canvas.Font.Style := Control.Canvas.Font.Style - [fsBold];
     5065      Control.Canvas.Font.Style := Control.Canvas.Font.Style - [fsBold];  //Test3
    50625066      //Control.Canvas.Font.Color := clBlack
    5063       Control.Canvas.Font.Color := clWhite;
    5064     end;
    5065 
     5067      Control.Canvas.Font.Color := clWhite;   //Test1
     5068    end;
     5069   
    50665070    if (TabControl.TabPosition = tpLeft) or (TabControl.TabPosition = tpRight) then begin
    50675071
     
    50995103
    51005104    if Active then begin
    5101       Control.Canvas.Brush.Color := Color;
     5105      Control.Canvas.Brush.Color := Color;  //Test2
    51025106    end else begin
    5103       Control.Canvas.Brush.Color := inactiveColor;
     5107      Control.Canvas.Brush.Color := inactiveColor;  //Test2
    51045108    end;
    51055109    Control.Canvas.FillRect(Rect);
Note: See TracChangeset for help on using the changeset viewer.