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:
Ansgar Becker
2008-08-26 06:14:48 +00:00
parent 7e2897ebcf
commit 2ff02a7eb1
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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);