home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 October
/
Chip_2001-10_cd1.bin
/
zkuste
/
delphi
/
kompon
/
d123456
/
CHEMPLOT.ZIP
/
TPlot
/
Plotmenu.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
2001-07-31
|
2KB
|
73 lines
// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Plotmenu.pas' rev: 3.00
#ifndef PlotmenuHPP
#define PlotmenuHPP
#include <Plotdefs.hpp>
#include <Plot.hpp>
#include <Misc.hpp>
#include <Menus.hpp>
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <SysInit.hpp>
#include <System.hpp>
//-- user supplied -----------------------------------------------------------
namespace Plotmenu
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TPlotMenu;
class PASCALIMPLEMENTATION TPlotMenu : public Menus::TMainMenu
{
typedef Menus::TMainMenu inherited;
private:
Plot::TPlot* FPlot;
Byte FHistoryLimit;
void __fastcall CreateMenus(void);
void __fastcall CreateReopenSubMenu(void);
System::AnsiString __fastcall GetHistory();
protected:
void __fastcall HandleClick(System::TObject* Sender);
void __fastcall HandleClunk(System::TObject* Sender);
void __fastcall HandleFileClick(System::TObject* Sender);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
void __fastcall SetPlot(Plot::TPlot* Value);
public:
__property System::AnsiString History = {read=GetHistory, stored=false};
__fastcall virtual TPlotMenu(Classes::TComponent* AOwner);
__fastcall virtual ~TPlotMenu(void);
void __fastcall ApplyOptions(Plotdefs::TPopupOptions* Value);
void __fastcall AddHistory(System::AnsiString Value);
bool __fastcall MenuExists(int ATag, System::AnsiString ACaption);
void __fastcall SetUpOnClicks(void);
__published:
__property Byte HistoryLimit = {read=FHistoryLimit, write=FHistoryLimit, nodefault};
__property Plot::TPlot* Plot = {read=FPlot, write=SetPlot};
};
//-- var, const, procedure ---------------------------------------------------
#define TPLOTMENU_VERSION (Byte)(200)
#define FILE_TAG (Word)(1000)
#define HELP_TAG (Word)(1095)
#define ABOUT_TAG (Word)(1096)
#define REOPEN_TAG (Word)(1097)
#define EXIT_DIV_TAG (Word)(1098)
#define EXIT_TAG (Word)(1099)
#define mnuReopen (Byte)(2)
} /* namespace Plotmenu */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Plotmenu;
#endif
//-- end unit ----------------------------------------------------------------
#endif // Plotmenu