git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.DevExpressVCL@8 05c56307-c608-d34a-929d-697000501d7a
109 lines
3.5 KiB
C++
109 lines
3.5 KiB
C++
//---------------------------------------------------------------------------
|
|
|
|
#ifndef StylesSimpleDemoMainH
|
|
#define StylesSimpleDemoMainH
|
|
//---------------------------------------------------------------------------
|
|
#include <Classes.hpp>
|
|
#include <Controls.hpp>
|
|
#include <StdCtrls.hpp>
|
|
#include <Forms.hpp>
|
|
#include "cxClasses.hpp"
|
|
#include "cxControls.hpp"
|
|
#include "cxCustomData.hpp"
|
|
#include "cxData.hpp"
|
|
#include "cxDBData.hpp"
|
|
#include "cxEdit.hpp"
|
|
#include "cxFilter.hpp"
|
|
#include "cxGraphics.hpp"
|
|
#include "cxGrid.hpp"
|
|
#include "cxGridCustomTableView.hpp"
|
|
#include "cxGridCustomView.hpp"
|
|
#include "cxGridDBTableView.hpp"
|
|
#include "cxGridLevel.hpp"
|
|
#include "cxGridTableView.hpp"
|
|
#include "cxStyles.hpp"
|
|
#include <ActnList.hpp>
|
|
#include <ComCtrls.hpp>
|
|
#include <DB.hpp>
|
|
#include <ImgList.hpp>
|
|
#include <Menus.hpp>
|
|
#include "cxGridCustomPopupMenu.hpp"
|
|
#include "cxGridPopupMenu.hpp"
|
|
#include "cxListBox.hpp"
|
|
#include <Buttons.hpp>
|
|
#include <ExtCtrls.hpp>
|
|
#include <ToolWin.hpp>
|
|
#include "cxContainer.hpp"
|
|
#include "cxLookAndFeels.hpp"
|
|
//---------------------------------------------------------------------------
|
|
class TStylesSimpleDemoMainForm : public TForm
|
|
{
|
|
__published: // IDE-managed Components
|
|
TSplitter *Splitter;
|
|
TLabel *lbDescription;
|
|
TcxGrid *cxGrid;
|
|
TcxGridDBTableView *tvPersons;
|
|
TcxGridDBColumn *tvPersonsID;
|
|
TcxGridDBColumn *tvPersonsFIRSTNAME;
|
|
TcxGridDBColumn *tvPersonsSECONDNAME;
|
|
TcxGridDBColumn *tvPersonsBIRTHNAME;
|
|
TcxGridDBColumn *tvPersonsDATEOFBIRTH;
|
|
TcxGridDBColumn *tvPersonsBIRTHCOUNTRY;
|
|
TcxGridDBColumn *tvPersonsLOCATIONOFBIRTH;
|
|
TcxGridDBColumn *tvPersonsBIOGRAPHY;
|
|
TcxGridLevel *lvPersons;
|
|
TToolBar *ToolBar;
|
|
TToolButton *tbColumns;
|
|
TToolButton *tbGroupBox;
|
|
TToolButton *tbFooter;
|
|
TToolButton *tbIndicator;
|
|
TToolButton *tbPreview;
|
|
TStatusBar *sbMain;
|
|
TGroupBox *gbChangeStyles;
|
|
TMemo *memHowTo;
|
|
TcxListBox *ListBox;
|
|
TPanel *pnlButtons;
|
|
TSpeedButton *btnEdit;
|
|
TSpeedButton *btnView;
|
|
TcxGridPopupMenu *cxGridPopupMenu;
|
|
TActionList *alMain;
|
|
TAction *actHeader;
|
|
TAction *actFooter;
|
|
TAction *actIndicator;
|
|
TAction *actGroupBox;
|
|
TAction *actPreview;
|
|
TMainMenu *mmMain;
|
|
TMenuItem *miFile;
|
|
TMenuItem *miExit;
|
|
TMenuItem *miOptions;
|
|
TMenuItem *miHeader;
|
|
TMenuItem *miFooter;
|
|
TMenuItem *miIndicator;
|
|
TMenuItem *miGroupByBox;
|
|
TMenuItem *miPreview;
|
|
TMenuItem *miAbout;
|
|
TImageList *ilMain;
|
|
TcxLookAndFeelController *LookAndFeelController;
|
|
void __fastcall miAboutClick(TObject *Sender);
|
|
void __fastcall actHeaderExecute(TObject *Sender);
|
|
void __fastcall actFooterExecute(TObject *Sender);
|
|
void __fastcall actIndicatorExecute(TObject *Sender);
|
|
void __fastcall actGroupBoxExecute(TObject *Sender);
|
|
void __fastcall actPreviewExecute(TObject *Sender);
|
|
void __fastcall miExitClick(TObject *Sender);
|
|
void __fastcall btnEditClick(TObject *Sender);
|
|
void __fastcall btnViewClick(TObject *Sender);
|
|
void __fastcall FormCreate(TObject *Sender);
|
|
private: // User declarations
|
|
TcxStyle* GetSelectedStyle();
|
|
void __fastcall RestoreDefaults(TObject *Sender);
|
|
bool ChangeStyle(TcxStyle *AStyle);
|
|
bool ChangeStyleBinding(TNotifyEvent ACallback);
|
|
public: // User declarations
|
|
__fastcall TStylesSimpleDemoMainForm(TComponent* Owner);
|
|
};
|
|
//---------------------------------------------------------------------------
|
|
extern PACKAGE TStylesSimpleDemoMainForm *StylesSimpleDemoMainForm;
|
|
//---------------------------------------------------------------------------
|
|
#endif
|