summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-02-05 10:52:03 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-02-05 10:52:03 +0000
commitaa8e6c9b6d27812861350ac6d21690068b31f8f9 (patch)
tree872f685a864ec34ef2f2ec93d226100fcd40c6a9
parent42e68e39cb7f0a790af45ef43dc81e4542638efc (diff)
downloadfpGUI-aa8e6c9b6d27812861350ac6d21690068b31f8f9.tar.xz
Applied patch from Slapshot fixing the TVFDPropertyEditor class. BackgroupColor property issue.
* I reverted the gui_memo.pas changes from r504 to fix a cursor focus issue when the memo contains no text. I will attend to this issue soon, so we don't have to force adding a blank line.
-rw-r--r--examples/apps/uidesigner/newformdesigner.pas3
-rw-r--r--src/gui/gui_memo.pas4
2 files changed, 3 insertions, 4 deletions
diff --git a/examples/apps/uidesigner/newformdesigner.pas b/examples/apps/uidesigner/newformdesigner.pas
index 110a21ec..25fffc61 100644
--- a/examples/apps/uidesigner/newformdesigner.pas
+++ b/examples/apps/uidesigner/newformdesigner.pas
@@ -118,7 +118,6 @@ type
editor: TVFDPropertyEditor;
NameDrag: boolean;
NameDragPos: integer;
- BackgroundColor: TfpgColor;
constructor Create(AOwner: TComponent); override;
procedure ReleaseEditor;
procedure AllocateEditor;
@@ -753,7 +752,7 @@ begin
Inc(x);
// Drawing the contents
r.SetRect(x, y, rect.right - x, rect.Height);
- Canvas.SetColor(FBackgroundColor);
+ Canvas.SetColor(BackgroundColor);
Canvas.FillRectangle(r);
Canvas.SetTextColor(clText1);
Inc(r.left, 2);
diff --git a/src/gui/gui_memo.pas b/src/gui/gui_memo.pas
index a925f2f2..599d3fd0 100644
--- a/src/gui/gui_memo.pas
+++ b/src/gui/gui_memo.pas
@@ -565,8 +565,8 @@ end;
function TfpgMemo.GetLineText(linenum: integer): string;
begin
-{ if LineCount < 1 then
- FLines.Add(''); }
+ if LineCount < 1 then
+ FLines.Add('');
if (linenum >= 1) and (linenum <= LineCount) then
Result := FLines.Strings[linenum - 1]
else