Changeset 462


Ignore:
Timestamp:
May 5, 2013, 12:15:00 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: Load icon with correct size to title bar.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/Managers/UCDManagerRegions.pas

    r437 r462  
    66
    77uses
    8   Classes, SysUtils, Controls, ExtCtrls, StdCtrls, Forms,
     8  Classes, SysUtils, Controls, ExtCtrls, StdCtrls, Forms, Dialogs, Types,
    99  Graphics, Contnrs, Buttons, UCDCommon, UCDManager,
    1010  LCLType, LMessages;
     
    285285  end;
    286286  if (Control is TForm) and Assigned((Control as TForm).Icon) then begin
     287    (Control as TForm).Icon.Current := (Control as TForm).Icon.GetBestIndexForSize(
     288      Size(NewItem.PanelHeader.Header.Height, NewItem.PanelHeader.Header.Height));
    287289    NewItem.PanelHeader.Header.Icon.Picture.Assign((Control as TForm).Icon);
    288290    NewItem.PanelHeader.Header.Icon.Width := NewItem.PanelHeader.Header.Icon.Picture.Bitmap.Width;
Note: See TracChangeset for help on using the changeset viewer.