Changeset 27 for trunk/Forms/UFormMain.pas
- Timestamp:
- Sep 10, 2022, 8:13:14 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r26 r27 31 31 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 32 32 procedure FormShow(Sender: TObject); 33 private 34 procedure SetToolbarHints; 33 35 public 34 36 procedure DockInit; … … 65 67 begin 66 68 Core.PersistentForm1.Load(Self, True); 69 SetToolbarHints; 67 70 DockInit; 68 71 end; … … 85 88 end; 86 89 90 procedure TFormMain.SetToolbarHints; 91 var 92 I: Integer; 93 J: Integer; 94 Control: TControl; 95 begin 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; 105 end; 106 87 107 end. 88 108
Note:
See TracChangeset
for help on using the changeset viewer.