Click here to Skip to main content
15,860,972 members
Articles / Desktop Programming / WTL

Form Designer

26 Jul 2021CPOL24 min read 349.8K   82.5K   230  
Component for adding scriptable forms capabilities to an application.
// Globals.h : Global declarations
//
// Author : David Shepherd
//			Copyright (c) 2003, DaeDoe-Software
//
/////////////////////////////////////////////////////////////////////////////

#pragma once

// custom dispatch id's
#define DISPID_CUSTOM				(1000)
// text align
#define DISPID_TEXTALIGN			(DISPID_CUSTOM + 0)
// picture align
#define DISPID_PICTUREALIGN			(DISPID_CUSTOM + 1)
// center vertically
#define DISPID_CENTERVERTICALLY		(DISPID_CUSTOM + 2)
// size to fit
#define DISPID_SIZETOFIT			(DISPID_CUSTOM + 3)
// value (differs from DISPID_VALUE in that it is not the default value)
#define DISPID_VALUE_NOTDEFAULT		(DISPID_CUSTOM + 4)
// minimum value
#define DISPID_MINVALUE				(DISPID_CUSTOM + 5)
// maximum value
#define DISPID_MAXVALUE				(DISPID_CUSTOM + 6)
// small step
#define DISPID_SMALLSTEP			(DISPID_CUSTOM + 7)
// large step
#define DISPID_LARGESTEP			(DISPID_CUSTOM + 8)
// sorted
#define DISPID_SORTED				(DISPID_CUSTOM + 9)
// redraw
#define DISPID_REDRAW				(DISPID_CUSTOM + 10)
// selected item
#define DISPID_SELECTEDITEM			(DISPID_CUSTOM + 11)

// text align
[export, v1_enum]
enum ddcpTextAlign
{
	// left
	ddcpTextAlignLeft				= 0,
	// center
	ddcpTextAlignCenter				= 1,
	// right
	ddcpTextAlignRight				= 2
};
#define ddcpTextAlign_First			ddcpTextAlignLeft
#define ddcpTextAlign_Last			ddcpTextAlignRight

// picture align
[export, v1_enum]
enum ddcpPictureAlign
{
	// top left
	ddcpPictureAlignTopLeft			= 0,
	// top middle
	ddcpPictureAlignTopMiddle		= 1,
	// top right
	ddcpPictureAlignTopRight		= 2,
	// middle left
	ddcpPictureAlignMiddleLeft		= 3,
	// center
	ddcpPictureAlignCenter			= 4,
	// middle right
	ddcpPictureAlignMiddleRight		= 5,
	// bottom left
	ddcpPictureAlignBottomLeft		= 6,
	// bottom middle
	ddcpPictureAlignBottomMiddle	= 7,
	// bottom right
	ddcpPictureAlignBottomRight		= 8
};
#define ddcpPictureAlign_First		ddcpPictureAlignTopLeft
#define ddcpPictureAlign_Last		ddcpPictureAlignBottomRight

// border style
[export, v1_enum]
enum ddcpBorderStyle
{
	// none
	ddcpBorderStyleNone				= 0,
	// sunken
	ddcpBorderStyleSunken			= 1,
	// raised
	ddcpBorderStyleRaised			= 2,
	// etched
	ddcpBorderStyleEtched			= 3,
	// bump
	ddcpBorderStyleBump				= 4
};
#define ddcpBorderStyle_First		ddcpBorderStyleNone
#define ddcpBorderStyle_Last		ddcpBorderStyleBump

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions