git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.DevExpressVCL@31 05c56307-c608-d34a-929d-697000501d7a
62 lines
1.9 KiB
C
62 lines
1.9 KiB
C
#include "..\cxDemosBCB.inc"
|
|
#include "Windows.hpp"
|
|
#include "cxVGrid.hpp"
|
|
#if BCB6
|
|
#include "Types.hpp"
|
|
#endif
|
|
#include "Graphics.hpp"
|
|
|
|
#ifndef CustomDrawDemoUtilsH
|
|
#define CustomDrawDemoUtilsH
|
|
|
|
enum TcxItemCustomDrawType {itNormal, itText, itCell};
|
|
enum TCustomDrawingStyle {cdsBkImage, cdsGradient, cdsDefaultDrawing, cdsDependsOnData};
|
|
enum TCustomDrawArea {cdaBackground, cdaCategory, cdaCell, cdaHeader};
|
|
const CustomDrawAreaCount = 4;
|
|
enum TcxColorScheme {csGrey, csGold, csBlue, csGreen};
|
|
const ColorSchemeCount = 4;
|
|
enum TBkImage {bkiTile, bkiSky, bkiEgypt, bkiMyFace, bkiUserDefined};
|
|
const BkImageCount = 5;
|
|
|
|
typedef TColor TcxColorSchemeArr[4][3];
|
|
|
|
const TColor clBlueDark = 0x00C56A31;
|
|
const TColor clBlueLight = 0x00F7EAD9;
|
|
const TColor clBlueBright = 0x00FF953D;
|
|
const TColor clBlueSky = 0x00EBC4A4;
|
|
|
|
const TColor clGold = 0x0047D5FE;
|
|
const TColor clGoldDark = 0x0001BDF3;
|
|
|
|
const TColor clGreyLight = 0x00E2EFF1;
|
|
const TColor clGreyDark = 0x00B9D9DD;
|
|
const TColor clYellowLight = 0x00E1FFFF;
|
|
|
|
const TColor clGreenBright = 0x0082E887;
|
|
const TColor clGreenLight = 0x00C9F5CB;
|
|
const TColor clGreenObscured = 0x00ACF0AF;
|
|
const TColor clGreenDark = 0x0044DD4B;
|
|
|
|
const TColor clSilverDark = 0x00A6A6A6;
|
|
|
|
//TArrRect = array of TRect;
|
|
|
|
enum TLineInfo {liTop, liBottom};
|
|
typedef Set<CustomDrawDemoUtilsH::TLineInfo, liTop, liBottom> TLineInfos;
|
|
|
|
extern const TcxColorSchemeArr ColorScheme;
|
|
extern const String BkImageResNames[BkImageCount];
|
|
extern const String ColorSchemeNames[ColorSchemeCount];
|
|
extern const String CustomDrawAreaNames[CustomDrawAreaCount];
|
|
|
|
void LoadImageFromRes(Graphics::TBitmap* ABitmap, String AResName);
|
|
|
|
void DrawGradient(TCanvas* ACanvas, TRect ARect, TColor FromColor, TColor ToColor,
|
|
int AStepCount, bool AHorizontal);
|
|
|
|
void FillRects(TLineInfos ALineInfos, TcxCustomRowHeaderInfo *AHeaderViewInfo,
|
|
TcxCanvas *ACanvas, TColor AColor);
|
|
|
|
#endif
|
|
|