mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +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
|
||||
Left = 0
|
||||
Top = 0
|
||||
Caption = 'frmMemoEditor'
|
||||
BorderStyle = bsSizeToolWin
|
||||
Caption = 'Text editor'
|
||||
ClientHeight = 95
|
||||
ClientWidth = 215
|
||||
Color = clBtnFace
|
||||
|
@ -58,8 +58,6 @@ var
|
||||
Tree: TCustomVirtualStringTree;
|
||||
begin
|
||||
Tree := TCustomVirtualStringTree(Parent);
|
||||
// Hide window caption
|
||||
SetWindowLong(Handle, GWL_STYLE, GetWindowLong( Handle, GWL_STYLE ) and not WS_CAPTION );
|
||||
// Restore form dimensions
|
||||
Width := Mainform.GetRegValue(REGNAME_MEMOEDITOR_WIDTH, DEFAULT_MEMOEDITOR_WIDTH);
|
||||
Height := Mainform.GetRegValue(REGNAME_MEMOEDITOR_HEIGHT, DEFAULT_MEMOEDITOR_HEIGHT);
|
||||
|
Reference in New Issue
Block a user