ソースを参照

Do not allow resize Ascii Table window.

Margers 1 ヶ月 前
コミット
0099cab2de
1 ファイル変更9 行追加0 行削除
  1. 9 0
      packages/fv/src/asciitab.pas

+ 9 - 0
packages/fv/src/asciitab.pas

@@ -94,6 +94,7 @@ type
     constructor Load(var S: TStream);
     procedure   Store(var S: TStream);
     procedure HandleEvent(var Event:TEvent); virtual;
+    procedure SizeLimits (Var Min, Max: TPoint); Virtual;
   end;
 
 {---------------------------------------------------------------------------}
@@ -321,6 +322,14 @@ begin
     end
   else inherited HandleEvent(Event);
 end;
+
+procedure TASCIIChart.SizeLimits (Var Min, Max: TPoint);
+begin
+  Min.X:=34;
+  Min.Y:=12;
+  Max:=Min;  { make sure no resize can take place }
+end;
+
 {---------------------------------------------------------------------------}
 { Registration procedure                                                    }
 {---------------------------------------------------------------------------}