mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Minor: Change format of "123,456,789 Characters" above querymemo to a better readable "123,4 MB"
This commit is contained in:
@@ -911,15 +911,14 @@ object MDIChild: TMDIChild
|
||||
end
|
||||
end
|
||||
object PanelCharsInQueryWindow: TPanel
|
||||
Left = 156
|
||||
Left = 200
|
||||
Top = 1
|
||||
Width = 116
|
||||
Width = 72
|
||||
Height = 27
|
||||
Align = alRight
|
||||
Alignment = taRightJustify
|
||||
BevelOuter = bvNone
|
||||
BorderWidth = 2
|
||||
Caption = '0 Characters'
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
Font.Color = clBlack
|
||||
Font.Height = -11
|
||||
|
||||
@@ -3193,7 +3193,7 @@ end;
|
||||
procedure TMDIChild.SynMemoQueryChange(Sender: TObject);
|
||||
var somechars : Boolean;
|
||||
begin
|
||||
PanelCharsInQueryWindow.Caption := FormatNumber( Length(SynMemoQuery.Text) ) + ' Characters';
|
||||
PanelCharsInQueryWindow.Caption := FormatByteNumber( SynMemoQuery.GetTextLen );
|
||||
somechars := Length(SynMemoQuery.Text) > 0;
|
||||
Mainform.ExecuteQuery.Enabled := somechars;
|
||||
Mainform.ExecuteSelection.Enabled := SynMemoQuery.SelAvail;
|
||||
|
||||
Reference in New Issue
Block a user