Changeset 200 for trunk/Forms


Ignore:
Timestamp:
Aug 31, 2018, 3:38:01 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Updated Common package files.
  • Fixed: Autosize coolbar during main form resize.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r187 r200  
    1414  OnDestroy = FormDestroy
    1515  OnHide = FormHide
     16  OnResize = FormResize
    1617  OnShow = FormShow
    1718  LCLVersion = '1.8.2.0'
     
    104105    Top = 0
    105106    Width = 847
     107    AutoSize = True
    106108    Bands = <   
    107109      item
     
    140142      Height = 28
    141143      Top = 5
    142       Width = 132
     144      Width = 135
    143145      Align = alNone
    144146      AutoSize = True
     
    182184      Height = 28
    183185      Top = 5
    184       Width = 117
     186      Width = 120
    185187      Align = alNone
    186188      AutoSize = True
     
    222224      Height = 28
    223225      Top = 5
    224       Width = 59
     226      Width = 62
    225227      Align = alNone
    226228      AutoSize = True
     
    252254      Height = 28
    253255      Top = 5
    254       Width = 88
     256      Width = 91
    255257      Align = alNone
    256258      AutoSize = True
  • trunk/Forms/UFormMain.pas

    r184 r200  
    125125    procedure EditSearchChange(Sender: TObject);
    126126    procedure FormHide(Sender: TObject);
     127    procedure FormResize(Sender: TObject);
    127128    procedure FormShow(Sender: TObject);
    128129    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
     
    228229end;
    229230
     231procedure TFormMain.FormResize(Sender: TObject);
     232begin
     233  CoolBar1.AutosizeBands;
     234end;
     235
    230236procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction);
    231237begin
     
    517523    ListViewFilter1.StringGrid.SetFocus;
    518524  end;
     525  Core.ScaleDPI1.ScaleControl(CoolBar1, Core.ScaleDPI1.DesignDPI);
     526  CoolBar1.AutosizeBands;
    519527end;
    520528
Note: See TracChangeset for help on using the changeset viewer.