home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 May
/
VPR9705A.ISO
/
VPR_DATA
/
PROGRAM
/
CBTRIAL
/
SETUP
/
DATA.Z
/
TABNOTBK.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-14
|
5KB
|
138 lines
//----------------------------------------------------------------------------
// Tabnotbk.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: Tabnotbk.pas
//----------------------------------------------------------------------------
#ifndef TabnotbkHPP
#define TabnotbkHPP
//----------------------------------------------------------------------------
#include <Menus.hpp>
#include <ComCtrls.hpp>
#include <DsgnIntf.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Messages.hpp>
#include <Forms.hpp>
#include <StdCtrls.hpp>
#include <Classes.hpp>
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Tabnotbk
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TPageChangeEvent)(System::TObject* Sender, int NewTab, bool &AllowChange
);
class __declspec(delphiclass) TTabPage;
class __declspec(pascalimplementation) TTabPage : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
protected:
virtual void __fastcall ReadState(Classes::TReader* Reader);
public:
__fastcall virtual TTabPage(Classes::TComponent* AOwner);
__published:
__property Caption ;
__property Height = {stored=false};
__property TabOrder = {stored=false, default=-1};
__property Visible = {stored=false, default=1};
__property Width = {stored=false};
__property Enabled = {stored=false, default=1};
public:
/* TWinControl.CreateParented */ __fastcall TTabPage(HWND ParentWindow) : Controls::TWinControl(ParentWindow
) { }
/* TWinControl.Destroy */ __fastcall virtual ~TTabPage(void) { }
};
class __declspec(delphiclass) TTabbedNotebook;
class __declspec(pascalimplementation) TTabbedNotebook : public Comctrls::TCustomTabControl
{
typedef Comctrls::TCustomTabControl inherited;
private:
Classes::TList* FPageList;
Classes::TStrings* FAccess;
int FPageIndex;
Graphics::TFont* FTabFont;
int FTabsPerRow;
Classes::TNotifyEvent FOnClick;
TPageChangeEvent FOnChange;
System::AnsiString __fastcall GetActivePage(void);
void __fastcall SetPages(Classes::TStrings* Value);
void __fastcall SetActivePage(const System::AnsiString Value);
void __fastcall SetTabFont(Graphics::TFont* Value);
void __fastcall SetTabsPerRow(int NewTabCount);
MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
protected:
virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &Rect);
virtual void __fastcall Change(void);
virtual void __fastcall Click(void);
virtual void __fastcall CreateHandle(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual Classes::TComponent* __fastcall GetChildOwner(void);
virtual void __fastcall GetChildren(Classes::TGetChildProc Proc);
virtual void __fastcall Loaded(void);
virtual void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
virtual void __fastcall ReadState(Classes::TReader* Reader);
void __fastcall SetPageIndex(int Value);
virtual void __fastcall ShowControl(Controls::TControl* AControl);
MESSAGE void __fastcall CMTabFontChanged(Messages::TMessage &Message);
public:
__fastcall virtual TTabbedNotebook(Classes::TComponent* AOwner);
__fastcall virtual ~TTabbedNotebook(void);
int __fastcall GetIndexForPage(const System::AnsiString PageName);
__property Graphics::TFont* TopFont = {read=FTabFont, nodefault};
void __fastcall TabFontChanged(System::TObject* Sender);
__published:
__property System::AnsiString ActivePage = {read=GetActivePage, write=SetActivePage, stored=false,
nodefault};
__property Align ;
__property Enabled ;
__property int PageIndex = {read=FPageIndex, write=SetPageIndex, default=0};
__property Classes::TStrings* Pages = {read=FAccess, write=SetPages, stored=false, nodefault};
__property Font ;
__property int TabsPerRow = {read=FTabsPerRow, write=SetTabsPerRow, default=3};
__property Graphics::TFont* TabFont = {read=FTabFont, write=SetTabFont, nodefault};
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
__property TPageChangeEvent OnChange = {read=FOnChange, write=FOnChange};
__property OnEnter ;
__property OnExit ;
public:
/* TWinControl.CreateParented */ __fastcall TTabbedNotebook(HWND ParentWindow) : Comctrls::TCustomTabControl(
ParentWindow) { }
};
//-- var, const, procedure ---------------------------------------------------
#define CM_TABFONTCHANGED (int)(45156)
} /* namespace Tabnotbk */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Tabnotbk;
#endif
//-- end unit ----------------------------------------------------------------
#endif // Tabnotbk