mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
Don't hide the window caption of the memo editor, display the form as toolwindow. Looks better since the form is centered.
This commit is contained in:
@ -1,7 +1,8 @@
|
|||||||
object frmMemoEditor: TfrmMemoEditor
|
object frmMemoEditor: TfrmMemoEditor
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
Caption = 'frmMemoEditor'
|
BorderStyle = bsSizeToolWin
|
||||||
|
Caption = 'Text editor'
|
||||||
ClientHeight = 95
|
ClientHeight = 95
|
||||||
ClientWidth = 215
|
ClientWidth = 215
|
||||||
Color = clBtnFace
|
Color = clBtnFace
|
||||||
|
@ -58,8 +58,6 @@ var
|
|||||||
Tree: TCustomVirtualStringTree;
|
Tree: TCustomVirtualStringTree;
|
||||||
begin
|
begin
|
||||||
Tree := TCustomVirtualStringTree(Parent);
|
Tree := TCustomVirtualStringTree(Parent);
|
||||||
// Hide window caption
|
|
||||||
SetWindowLong(Handle, GWL_STYLE, GetWindowLong( Handle, GWL_STYLE ) and not WS_CAPTION );
|
|
||||||
// Restore form dimensions
|
// Restore form dimensions
|
||||||
Width := Mainform.GetRegValue(REGNAME_MEMOEDITOR_WIDTH, DEFAULT_MEMOEDITOR_WIDTH);
|
Width := Mainform.GetRegValue(REGNAME_MEMOEDITOR_WIDTH, DEFAULT_MEMOEDITOR_WIDTH);
|
||||||
Height := Mainform.GetRegValue(REGNAME_MEMOEDITOR_HEIGHT, DEFAULT_MEMOEDITOR_HEIGHT);
|
Height := Mainform.GetRegValue(REGNAME_MEMOEDITOR_HEIGHT, DEFAULT_MEMOEDITOR_HEIGHT);
|
||||||
|
Reference in New Issue
Block a user