Commits

Palmer, 2E0EOL committed 1623b54

Layout menus in MainBrowse

Comments (0)

Files changed (5)

src/MainBrowseUnit.cpp

 //---------------------------------------------------------------------------
 #pragma package(smart_init)
 #pragma resource "*.dfm"
-TForm1 *Form1;
+TMainBrowse *MainBrowse;
 //---------------------------------------------------------------------------
-__fastcall TForm1::TForm1(TComponent* Owner)
+__fastcall TMainBrowse::TMainBrowse(TComponent* Owner)
         : TForm(Owner)
 {
 }

src/MainBrowseUnit.dfm

Binary file modified.

src/MainBrowseUnit.h

 #include <Controls.hpp>
 #include <StdCtrls.hpp>
 #include <Forms.hpp>
+#include <ComCtrls.hpp>
+#include <Menus.hpp>
 //---------------------------------------------------------------------------
-class TForm1 : public TForm
+class TMainBrowse : public TForm
 {
 __published:	// IDE-managed Components
+        TListView *ArcListView;
+        TStatusBar *ArcStatus;
+        TMainMenu *MainBrowseMenu;
+        TMenuItem *File1;
+        TMenuItem *Exit1;
+        TMenuItem *N1;
+        TMenuItem *PrintSetup1;
+        TMenuItem *Print1;
+        TMenuItem *N2;
+        TMenuItem *SaveAs1;
+        TMenuItem *Save1;
+        TMenuItem *Open1;
+        TMenuItem *New1;
+        TMenuItem *Edit1;
+        TMenuItem *Object1;
+        TMenuItem *Links1;
+        TMenuItem *N5;
+        TMenuItem *GoTo1;
+        TMenuItem *Replace1;
+        TMenuItem *Find1;
+        TMenuItem *N6;
+        TMenuItem *PasteSpecial1;
+        TMenuItem *Paste1;
+        TMenuItem *Copy1;
+        TMenuItem *Cut1;
+        TMenuItem *N7;
+        TMenuItem *Repeatcommand1;
+        TMenuItem *Undo1;
+        TMenuItem *Help1;
+        TMenuItem *About1;
+        TMenuItem *HowtoUseHelp1;
+        TMenuItem *Tutorial1;
+        TMenuItem *SearchforHelpOn1;
+        TMenuItem *Keyboard1;
+        TMenuItem *Procedures1;
+        TMenuItem *Commands1;
+        TMenuItem *Index1;
+        TMenuItem *Contents1;
 private:	// User declarations
 public:		// User declarations
-        __fastcall TForm1(TComponent* Owner);
+        __fastcall TMainBrowse(TComponent* Owner);
 };
 //---------------------------------------------------------------------------
-extern PACKAGE TForm1 *Form1;
+extern PACKAGE TMainBrowse *MainBrowse;
 //---------------------------------------------------------------------------
 #endif
 #include <vcl.h>
 #pragma hdrstop
 USERES("winrttb.res");
-USEFORM("MainBrowseUnit.cpp", Form1);
+USEFORM("MainBrowseUnit.cpp", MainBrowse);
 //---------------------------------------------------------------------------
 WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
 {
         {
                  Application->Initialize();
                  Application->Title = "winrttb";
-                 Application->CreateForm(__classid(TForm1), &Form1);
+                 Application->CreateForm(__classid(TMainBrowse), &MainBrowse);
                  Application->Run();
         }
         catch (Exception &exception)

src/winrttb.res

Binary file modified.