Ignore:
Timestamp:
Sep 10, 2022, 8:13:14 PM (20 months ago)
Author:
chronos
Message:
  • Fixed: Updated Czech translation.
  • Fixed: Main tool bar hints.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r26 r27  
    3131    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    3232    procedure FormShow(Sender: TObject);
     33  private
     34    procedure SetToolbarHints;
    3335  public
    3436    procedure DockInit;
     
    6567begin
    6668  Core.PersistentForm1.Load(Self, True);
     69  SetToolbarHints;
    6770  DockInit;
    6871end;
     
    8588end;
    8689
     90procedure TFormMain.SetToolbarHints;
     91var
     92  I: Integer;
     93  J: Integer;
     94  Control: TControl;
     95begin
     96  for J := 0 to CoolBar1.ControlCount - 1 do begin
     97    Control := CoolBar1.Controls[J];
     98    if Control is TToolBar then begin
     99      for I := 0 to TToolBar(Control).ButtonCount - 1 do begin
     100        TToolBar(Control).Buttons[I].ShowHint := True;
     101        TToolBar(Control).Buttons[I].Hint := TToolBar(Control).Buttons[I].Caption;
     102      end;
     103    end;
     104  end;
     105end;
     106
    87107end.
    88108
Note: See TracChangeset for help on using the changeset viewer.