diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-08-18 17:11:58 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-08-18 17:11:58 +0200 |
commit | 43f1147fdef3ca6166f65034c5505b1856baaaac (patch) | |
tree | 50c1f68e8b0e466a0395b72193d1c8bbaff1011e /src | |
parent | de04d078447a5ad8d2da2891ee7633556925f6b0 (diff) | |
download | fpGUI-43f1147fdef3ca6166f65034c5505b1856baaaac.tar.xz |
Added TfpgFrame to fpGUI.
This is a UI Designer friendly component that allows you to embed frames
"Windows" inside other windows.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/fpg_panel.pas | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/gui/fpg_panel.pas b/src/gui/fpg_panel.pas index 9a67cee3..0ba6cc04 100644 --- a/src/gui/fpg_panel.pas +++ b/src/gui/fpg_panel.pas @@ -228,6 +228,48 @@ type end; + { A panel that could replace a TfpgForm. Very handly for embedding + "forms" inside other forms. You should also be able to design such + frames with the UI designer too. } + TfpgFrame = class(TfpgAbstractPanel) + protected + WindowTitle: TfpgString; + public + constructor Create(AOwner: TComponent); override; + procedure AfterCreate; virtual; + published + property AcceptDrops; + property Align; + property BackgroundColor; + property BorderStyle; + property Enabled; + property Height; + property Hint; + property Left; + property MaxHeight; + property MaxWidth; + property MinHeight; + property MinWidth; + property ParentBackgroundColor; + property ParentShowHint; + property ShowHint; + property Style; + property Top; + property Width; + property OnClick; + property OnDoubleClick; + property OnDragDrop; + property OnDragEnter; + property OnDragLeave; + property OnDragStartDetected; + property OnMouseDown; + property OnMouseMove; + property OnMouseUp; + property OnPaint; + property OnShowHint; + end; + + function CreateBevel(AOwner: TComponent; ALeft, ATop, AWidth, AHeight: TfpgCoord; AShape: TPanelShape; AStyle: TPanelStyle): TfpgBevel; @@ -284,6 +326,19 @@ begin Result.FMargin := AMargin; end; +{ TfpgFrame } + +constructor TfpgFrame.Create(AOwner: TComponent); +begin + inherited Create(AOwner); + AfterCreate; +end; + +procedure TfpgFrame.AfterCreate; +begin + // do nothing here +end; + {TfpgAbstractPanel} |