- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
(extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
BT game source (never mixed into CODE/). Round 1-3 state:
* 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
(BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
since 1996.
* BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
its binary-recorded line 400 exactly.
* BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
(Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
TeamScore=12 flagged [T4]).
* MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
(VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
the period compiler is the drift detector).
* Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
(per-TU verification sweep under authentic OPT.MAK flags).
* README: corrected roadmap - MECH.HPP is the capstone grown with the mech
TU reconstructions; BTREG.CPP green = the header-family milestone.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
69 lines
2.8 KiB
C++
69 lines
2.8 KiB
C++
//----------------------------------------------------------------------------
|
|
// ObjectWindows - (C) Copyright 1991, 1993 by Borland International
|
|
//----------------------------------------------------------------------------
|
|
#include <owl\owlpch.h>
|
|
#include <owl\applicat.h>
|
|
#include <owl\framewin.h>
|
|
#include <owl\static.h>
|
|
|
|
class TTestWindow : public TWindow {
|
|
public:
|
|
TTestWindow();
|
|
};
|
|
|
|
TTestWindow::TTestWindow()
|
|
: TWindow(0, 0, 0)
|
|
{
|
|
TStatic* statik;
|
|
|
|
Attr.W = 390;
|
|
Attr.H = 334;
|
|
|
|
new TStatic(this, -1, "Default Static", 20, 20, 150, 24, 0);
|
|
new TStatic(this, -1, "SS_SIMPLE", 20, 50, 150, 24, 0);
|
|
new TStatic(this, -1, "SS_LEFT", 20, 80, 150, 24, 0);
|
|
new TStatic(this, -1, "SS_CENTER", 20, 110, 150, 24, 0);
|
|
new TStatic(this, -1, "SS_RIGHT", 20, 140, 150, 24, 0);
|
|
new TStatic(this, -1, "SS_BLACKFRAME", 20, 170, 150, 24, 0);
|
|
new TStatic(this, -1, "SS_BLACKRECT", 20, 200, 150, 24, 0);
|
|
new TStatic(this, -1, "SS_GRAYFRAME", 20, 230, 150, 24, 0);
|
|
new TStatic(this, -1, "SS_GRAYRECT", 20, 260, 150, 24, 0);
|
|
new TStatic(this, -1, "SS_NOPREFIX", 20, 290, 150, 24, 0);
|
|
new TStatic(this, -1, "Sample &Text", 170, 20, 200, 24, 0);
|
|
|
|
statik = new TStatic(this, -1, "Sample &Text", 170, 50, 200, 24, 14);
|
|
statik->Attr.Style = (statik->Attr.Style & ~SS_LEFT) | SS_SIMPLE;
|
|
new TStatic(this, -1, "Sample &Text", 170, 80, 200, 24, 0);
|
|
statik = new TStatic(this, -1, "Sample &Text", 170, 110, 200, 24, 14);
|
|
statik->Attr.Style = (statik->Attr.Style & ~SS_LEFT) | SS_CENTER;
|
|
statik = new TStatic(this, -1, "Sample &Text", 170, 140, 200, 24, 14);
|
|
statik->Attr.Style = (statik->Attr.Style & ~SS_LEFT) | SS_RIGHT;
|
|
statik = new TStatic(this, -1, "Sample &Text", 170, 170, 200, 24, 0);
|
|
statik->Attr.Style = (statik->Attr.Style & ~SS_LEFT) | SS_BLACKFRAME;
|
|
statik = new TStatic(this, -1, "Sample &Text", 170, 200, 200, 24, 0);
|
|
statik->Attr.Style = (statik->Attr.Style & ~SS_LEFT) | SS_BLACKRECT;
|
|
statik = new TStatic(this, -1, "Sample &Text", 170, 230, 200, 24, 0);
|
|
statik->Attr.Style = (statik->Attr.Style & ~SS_LEFT) | SS_GRAYFRAME;
|
|
statik = new TStatic(this, -1, "Sample &Text", 170, 260, 200, 24, 0);
|
|
statik->Attr.Style = (statik->Attr.Style & ~SS_LEFT) | SS_GRAYRECT;
|
|
statik = new TStatic(this, -1, "Sample &Text", 170, 290, 200, 24, 0);
|
|
statik->Attr.Style = (statik->Attr.Style & ~SS_LEFT) | SS_RIGHT|SS_NOPREFIX;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
class TTestApp : public TApplication {
|
|
public:
|
|
TTestApp() : TApplication() {}
|
|
void InitMainWindow() {
|
|
MainWindow = new TFrameWindow(0, "Static Control Tester", new TTestWindow, TRUE);
|
|
}
|
|
};
|
|
|
|
int
|
|
OwlMain(int /*argc*/, char* /*argv*/ [])
|
|
{
|
|
TTestApp app;
|
|
return app.Run();
|
|
}
|