[Classes] [Prev] [Next] [Methods]

Global

Heritage
Description
Usage
Glue Types
Default Parameters
Text Editing
Internal XVT-Power++ Commands
Internal XVT-Power++ ID Numbers
Directional Flags
Error Handling
Globals
Min and Max (not defined by some compilers)
Internal XVT-Power++ Resources
Units
Default Menubar IDs
TDI Macros and Context Commands

Global


Heritage

Superclass: None

Subclasses: None


Description

Global.h is a file that contains definitions used by XVT-Power++.


Usage

This file is already included where it is needed, and you should make no changes to it.

Glue Types

The following defines can be used to describe types of glue. See CGlue.

typedef long GLUETYPE;

#define LEFTSTICKY 0xFF000000L
#define TOPSTICKY 0x00FF0000L
#define RIGHTSTICKY 0x0000FF00L
#define BOTTOMSTICKY 0x000000FFL
#define SAMESTICKY 0xF0F0F0F0L
#define ALLSTICKY 0xFFFFFFFFL
#define TOPLEFTSTICKY 0xFFFF0000L
#define TOPRIGHTSTICKY 0x00FFFF00L
#define BOTTOMLEFTSTICKY 0xFF0000FFL
#define BOTTOMRIGHTSTICKY 0x0000FFFFL
#define NULLSTICKY 0x00000000L

Default Parameters

The following two defines are used to indicate certain default parameter values in some XVT-Power++ methods:

#define LAST 0x0000FFFF		// Last item in a list
#define SAME 0xF0F0F0F0 // Use the previously-defined value

Text Editing

#define INSETBORDER 4
#define SZ_MAXTITLE (255*XVT_MAX_MB_SIZE)

Internal XVT-Power++ Commands

XVT-Power++ generates the following commands internally. Note that the XVT-Power++ command base is 20,000 and therefore the numbers of all user-defined commands should be lower than this base.

#define PWRCommandBase 20000

#define NOWINDOWcmd (PWRCommandBase + 1) // all windows closed

#define NATIVEViewCmd (PWRCommandBase + 2 // trapped by CScroller

#define NULLcmd (PWRCommandBase + 3) // default command setting

#define WFSelectCmd (PWRCommandBase + 4) // wireframe selection

#define WFDeselectCmd (PWRCommandBase + 5) // wireframe deselection

#define WFSizeCmd (PWRCommandBase + 6) // wireframe move/size

#define TableEventCmd (PWRCommandBase + 7) // a CTableEvent command

#define TreeEventCmd (PWRCommandBase + 8) // a CTableEvent command

#define TDISuspendCmd PWRCommandBase + 9) // suspend TDI notifications

#define TDIResumeCmd (PWRCommandBase + 10) // resume TDI notifications

#define TDIFlushCmd (PWRCommandBase + 11) // flush current state over TDI

Internal XVT-Power++ ID Numbers

XVT-Power++ assigns the following ID numbers internally. Note that the XVT-Power++ ID number base is 20,000. Therefore, all user-defined ID numbers should be lower than this base.

#define PWRIdBase 20000

#define PWREnvBaseId 500O

#define PWRDefTitleSize 100
#define NULLid (PWRIdBase + 1) //Default ID for objects
with no ID
#define TASKDOCid (PWRIdBase + 2) // ID number of the
task document

Directional Flags

The following defines are used throughout XVT-Power++ to select directions or to designate the sides of an object. For example, scrollbars are oriented in horizontal or vertical directions, and objects such as radio buttons can be placed horizontally or vertically within their enclosure.

#define PWRTOP	 0x0001
#define PWRBOTTOM 0x0002
#define PWRLEFT 0x0004
#define PWRRIGHT 0x0008

typedef enum {VERTICAL, HORIZONTAL} DIRECTION;

typedef DIRECTION SBTYPE;

Error Handling

#include PWR_INCL_PATH( pwr, PwrError.h, pwrerror.h )

Globals

#define MENUSeparator (CObjectRWC::GetG()
->GetMENUSeparator())

#define MAXRect (CObjectRWC::GetG()->GetMAXRect())

#define STDFont (CObjectRWC::GetG()->GetSTDFont())

#define NULLCRegion (CObjectRWC::GetG()
->GetNULLCRegion())

#define NULLString (CObjectRWC::GetG()->GetNULLString())

Min and Max (not defined by some compilers)

#ifndef min
#define min(x,y) ((x) < (y) ? (x) : (y))
#endif // min

#ifndef max
define max(x,y) ((x) > (y) ? (x) : (y))
endif // max

Internal XVT-Power++ Resources

XVT-Power++ defines the following resources internally. Note that the XVT-Power++ resource ID base is 20,000. Therefore, all user-defined resource ID numbers should be lower than this base.

#define PWRRidBase 20000

#define NULLwidth 32
#define NULLheight 30
#define NULLicon (PWRRidBase + 1)

Units

typedef float UNITS;

Default Menubar IDs

The following define default menubar IDs:

#ifndef MENU_BAR_RID

#define MENU_BAR_RID 9001

TDI Macros and Context Commands

#define TDI_EVENT( _DoNotify )            \

do { \

if ( GetPrimaryController() != NULL ) \

_DoNotify; \

} while( 0 )

#define PWRTdiIDBase 20000

#define PWRTdiIDMax 20999

Data change commands

#define TDISelectCmd          (PWRTdiIDBase + 1)
#define TDIReplaceCmd         (PWRTdiIDBase + 2)
#define TDIClearCmd           (PWRTdiIDBase + 3)
#define TDIAppendCmd          (PWRTdiIDBase + 4)
#define TDIRemoveCmd          (PWRTdiIDBase + 5)
#define TDIOptionClearCmd     (PWRTdiIDBase + 6)
#define TDIOptionReplaceCmd   (PWRTdiIDBase + 7)
#define TDIOptionAppendCmd    (PWRTdiIDBase + 8)
#define TDIInsertCmd          (PWRTdiIDBase + 9)

Data Request Commands

#define TDIIndexCmd           (PWRTdiIDBase + 100)
#define TDICountCmd           (PWRTdiIDBase + 101)
#define TDIAllCmd             (PWRTdiIDBase + 102)
#define TDICurrentCmd         (PWRTdiIDBase + 103)
#define TDINextCmd            (PWRTdiIDBase + 104)
#define TDIPreviousCmd        (PWRTdiIDBase + 105)
#define TDIFirstCmd           (PWRTdiIDBase + 106)
#define TDILastCmd            (PWRTdiIDBase + 107)
#define TDIGotoCmd            (PWRTdiIDBase + 108)


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.