UPD: Cleanup.

This commit is contained in:
cobines 2011-10-29 12:52:34 +00:00
commit ce7296d8f1

View file

@ -28,12 +28,10 @@ interface
uses
Classes, SysUtils, ExtCtrls, StdCtrls, Grids,
fOptionsFrame, uHotkeyManager, fgl;
fOptionsFrame, uHotkeyManager;
type
TStringMap = specialize TFPGMap<String, String>;
{ TfrmOptionsHotkeys }
TfrmOptionsHotkeys = class(TOptionsEditor)
@ -125,7 +123,7 @@ implementation
{$R *.lfm}
uses
Forms, Controls, Dialogs, LCLProc, {fMain,}
Forms, Controls, Dialogs, LCLProc,
uFindEx, uGlobs, uGlobsPaths, uLng, uTypes, uKeyboard, uFormCommands;
const
@ -412,11 +410,9 @@ procedure TfrmOptionsHotkeys.AutoSizeCommandsGrid;
begin
with stgCommands do
begin
BeginUpdate;
AutoSizeColumns;
if ClientWidth > GridWidth then
ColWidths[stgCmdCommentIndex] := ColWidths[stgCmdCommentIndex] + (ClientWidth - GridWidth);
EndUpdate;
end;
end;