diff --git a/components/rx/Demos/RxMDI/project1.lpi b/components/rx/Demos/RxMDI/project1.lpi
index a8da1eca8..25e9b31ab 100644
--- a/components/rx/Demos/RxMDI/project1.lpi
+++ b/components/rx/Demos/RxMDI/project1.lpi
@@ -48,6 +48,7 @@
+
@@ -55,6 +56,7 @@
+
@@ -62,6 +64,7 @@
+
@@ -69,6 +72,7 @@
+
diff --git a/components/rx/Demos/RxMDI/project1.lps b/components/rx/Demos/RxMDI/project1.lps
index 8fa8a3e41..61753a883 100644
--- a/components/rx/Demos/RxMDI/project1.lps
+++ b/components/rx/Demos/RxMDI/project1.lps
@@ -8,20 +8,20 @@
-
+
+
-
-
-
-
+
+
+
@@ -29,53 +29,57 @@
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
-
-
-
+
+
+
-
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -83,126 +87,137 @@
-
-
+
+
-
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/rx/Demos/RxMDI/unit1.lfm b/components/rx/Demos/RxMDI/unit1.lfm
index eaef5b4fb..6cf0270b4 100644
--- a/components/rx/Demos/RxMDI/unit1.lfm
+++ b/components/rx/Demos/RxMDI/unit1.lfm
@@ -126,4 +126,10 @@ object Form1: TForm1
end
end
end
+ object Timer1: TTimer
+ Interval = 500
+ OnTimer = Timer1Timer
+ left = 451
+ top = 117
+ end
end
diff --git a/components/rx/Demos/RxMDI/unit1.pas b/components/rx/Demos/RxMDI/unit1.pas
index c2d9191ba..8e4f225b3 100644
--- a/components/rx/Demos/RxMDI/unit1.pas
+++ b/components/rx/Demos/RxMDI/unit1.pas
@@ -6,7 +6,7 @@ interface
uses
Classes, SysUtils, FileUtil, rxtoolbar, RxMDI, Forms, Controls, Graphics,
- Dialogs, ActnList, Menus, ComCtrls;
+ Dialogs, ActnList, Menus, ComCtrls, ExtCtrls;
type
@@ -30,11 +30,13 @@ type
RxMDIPanel1: TRxMDIPanel;
RxMDITasks1: TRxMDITasks;
StatusBar1: TStatusBar;
+ Timer1: TTimer;
ToolPanel1: TToolPanel;
procedure Action1Execute(Sender: TObject);
procedure Action2Execute(Sender: TObject);
procedure Action3Execute(Sender: TObject);
procedure sysCloseExecute(Sender: TObject);
+ procedure Timer1Timer(Sender: TObject);
private
{ private declarations }
public
@@ -57,6 +59,15 @@ begin
Close;
end;
+procedure TForm1.Timer1Timer(Sender: TObject);
+begin
+ if Assigned(ActiveControl) then
+ StatusBar1.SimpleText:=ActiveControl.Caption
+ else
+ StatusBar1.SimpleText:=''
+ ;
+end;
+
procedure TForm1.Action1Execute(Sender: TObject);
begin
RxMDIPanel1.ChildWindowsCreate(Form2, TForm2);
diff --git a/components/rx/Demos/RxMDI/unit2.lfm b/components/rx/Demos/RxMDI/unit2.lfm
index f131d402e..1e7cf2907 100644
--- a/components/rx/Demos/RxMDI/unit2.lfm
+++ b/components/rx/Demos/RxMDI/unit2.lfm
@@ -1,11 +1,11 @@
object Form2: TForm2
Left = 502
- Height = 240
+ Height = 414
Top = 245
- Width = 320
+ Width = 478
Caption = 'MDI form 1'
- ClientHeight = 240
- ClientWidth = 320
+ ClientHeight = 414
+ ClientWidth = 478
Icon.Data = {
7E04000000000100010010100000010020006804000016000000280000001000
0000200000000100200000000000000400006400000064000000000000000000
@@ -51,9 +51,33 @@ object Form2: TForm2
Left = 0
Height = 50
Top = 0
- Width = 320
+ Width = 478
Align = alTop
Caption = 'MDI form # 1'
TabOrder = 0
end
+ object Edit1: TEdit
+ Left = 21
+ Height = 25
+ Top = 106
+ Width = 80
+ TabOrder = 1
+ Text = 'Edit1'
+ end
+ object Edit2: TEdit
+ Left = 118
+ Height = 25
+ Top = 105
+ Width = 80
+ TabOrder = 2
+ Text = 'Edit2'
+ end
+ object Edit3: TEdit
+ Left = 223
+ Height = 25
+ Top = 103
+ Width = 80
+ TabOrder = 3
+ Text = 'Edit3'
+ end
end
diff --git a/components/rx/Demos/RxMDI/unit2.pas b/components/rx/Demos/RxMDI/unit2.pas
index 7b3daa92b..44b1c5ad5 100644
--- a/components/rx/Demos/RxMDI/unit2.pas
+++ b/components/rx/Demos/RxMDI/unit2.pas
@@ -5,13 +5,17 @@ unit Unit2;
interface
uses
- Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls;
+ Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
+ StdCtrls;
type
{ TForm2 }
TForm2 = class(TForm)
+ Edit1: TEdit;
+ Edit2: TEdit;
+ Edit3: TEdit;
Panel1: TPanel;
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
private
diff --git a/components/rx/Demos/RxMDI/unit4.lfm b/components/rx/Demos/RxMDI/unit4.lfm
index b70a3d815..5ccc0ac69 100644
--- a/components/rx/Demos/RxMDI/unit4.lfm
+++ b/components/rx/Demos/RxMDI/unit4.lfm
@@ -57,4 +57,28 @@ object Form4: TForm4
Caption = 'MDI form # ...'
TabOrder = 0
end
+ object Edit1: TEdit
+ Left = 47
+ Height = 25
+ Top = 84
+ Width = 80
+ TabOrder = 1
+ Text = 'Edit1'
+ end
+ object Edit2: TEdit
+ Left = 43
+ Height = 25
+ Top = 154
+ Width = 80
+ TabOrder = 2
+ Text = 'Edit2'
+ end
+ object Edit3: TEdit
+ Left = 45
+ Height = 25
+ Top = 215
+ Width = 80
+ TabOrder = 3
+ Text = 'Edit3'
+ end
end
diff --git a/components/rx/Demos/RxMDI/unit4.pas b/components/rx/Demos/RxMDI/unit4.pas
index b91cb54e2..31d3c6017 100644
--- a/components/rx/Demos/RxMDI/unit4.pas
+++ b/components/rx/Demos/RxMDI/unit4.pas
@@ -5,13 +5,17 @@ unit Unit4;
interface
uses
- Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls;
+ Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs,
+ ExtCtrls, StdCtrls;
type
{ TForm4 }
TForm4 = class(TForm)
+ Edit1: TEdit;
+ Edit2: TEdit;
+ Edit3: TEdit;
Panel1: TPanel;
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
procedure FormCreate(Sender: TObject);