Ignore:
Timestamp:
Dec 2, 2021, 2:21:36 PM (3 years ago)
Author:
chronos
Message:
  • Fixed: Autosize cool bar bands.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r34 r44  
    4949    procedure FormCreate(Sender: TObject);
    5050    procedure FormDestroy(Sender: TObject);
     51    procedure FormResize(Sender: TObject);
    5152    procedure FormShow(Sender: TObject);
    5253    procedure MenuItemToolbarClick(Sender: TObject);
     
    9596end;
    9697
     98procedure TFormMain.FormResize(Sender: TObject);
     99begin
     100  CoolBar1.AutosizeBands;
     101end;
     102
    97103procedure TFormMain.FormShow(Sender: TObject);
    98104begin
     
    101107  Core.ThemeManager1.UseTheme(Self);
    102108  Core.PersistentForm1.Load(Self);
     109  Core.ScaleDPI1.ScaleControl(CoolBar1, Core.ScaleDPI1.DesignDPI);
     110  CoolBar1.AutosizeBands;
    103111
    104112  FormContacts := TFormContacts.Create(nil);
Note: See TracChangeset for help on using the changeset viewer.