Last change
on this file since 1153 was 829, checked in by Kevin Toppenberg, 14 years ago |
Upgrade to version 27
|
File size:
756 bytes
|
Rev | Line | |
---|
[829] | 1 | unit OR2006Compatibility;
|
---|
| 2 |
|
---|
| 3 | interface
|
---|
| 4 |
|
---|
| 5 | uses
|
---|
| 6 | Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
---|
| 7 | Dialogs;
|
---|
| 8 |
|
---|
| 9 | {$IFDEF VER140}
|
---|
| 10 | Compile Error // should not be used in Delphi 6!
|
---|
| 11 | {$ENDIF}
|
---|
| 12 |
|
---|
| 13 | type
|
---|
| 14 | Tfrm2006Compatibility = class(TForm)
|
---|
| 15 | public
|
---|
| 16 | constructor CreateNew(AOwner: TComponent; Dummy: Integer = 0); override;
|
---|
| 17 | end;
|
---|
| 18 |
|
---|
| 19 | var
|
---|
| 20 | frm2006Compatibility: Tfrm2006Compatibility;
|
---|
| 21 |
|
---|
| 22 | implementation
|
---|
| 23 |
|
---|
| 24 | {$R *.dfm}
|
---|
| 25 |
|
---|
| 26 | { Tfrm2006Compatibility }
|
---|
| 27 |
|
---|
| 28 | constructor Tfrm2006Compatibility.CreateNew(AOwner: TComponent; Dummy: Integer);
|
---|
| 29 | begin
|
---|
| 30 | inherited CreateNew(AOwner, Dummy);
|
---|
| 31 | // - if Form is pulled up in Delphi 6, the value stored in the DFM will be erased
|
---|
| 32 | position := poDesigned;
|
---|
| 33 | AutoScroll := True;
|
---|
| 34 | end;
|
---|
| 35 |
|
---|
| 36 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.