home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
netutils
/
pmail311.arj
/
RESOURCE.ZIP
/
DEFINES.RH
< prev
next >
Wrap
Text File
|
1993-02-08
|
4KB
|
99 lines
#
# General-purpose symbols for use when compiling resources
# for use with the Manager Module.
#
# Copyright (c) 1991-93, David Harris, All Rights Reserved.
#
# Must be compiled with ResCom, the Manager Module
# Resource Compiler.
#
# This file and data is proprietary to David Harris: changes
# may only be made to it by his explicit permission, and any
# changes to it automatically become his property.
#
# Window and display control constants
define wshadow 8192 # add a drop shadow to a window
define wliteral 4096 # display: OR to force black over default background
define wnoclip 4096 # OR with this if you want no clipping on a window
define wzip 2048 # windows: zip from cursor position
define wcentre 1024 # display: centre text; windows: centre onscreen
define wadjacent 512 # display: right flush; windows: open against cursor
define wplain 256 # windows: no effects; display: (ignored)
define wblink 128 # display: blinking text; windows: blinking frame
define bright 15
define dim 7
# Box style defines - use for windows and frames
define BSINGLE 3 # Set single-line frames for boxes and windows
define BDOUBLE 1 # Double-line frames
define BMIXED 0 # Double frame along top/bottom, single down sides
define BSOLID 2 # Solid box frames
define BDOTS 4 # Dotted box frames
# Colour defines - use anywhere where colours are defined.
# First - foreground colours.
define BLACK 0
define BLUE 1
define GREEN 2
define CYAN 3
define RED 4
define MAGENTA 5
define BROWN 6
define LIGHTGREY 7
define DARKGREY 8
define LIGHTBLUE 9
define LIGHTGREEN 10
define LIGHTCYAN 11
define LIGHTRED 12
define LIGHTMAGENTA 13
define YELLOW 14
define WHITE 15
# ... and now, background colours. OR these with the
# foreground colours for combinations.
define BBLUE 16
define BGREEN 32
define BCYAN 48
define BRED 64
define BMAGENTA 80
define BBROWN 96
define BLIGHTGREY 112
# Data-type strings for "data" statements. These control
# the type of data a field will accept.
define GT_STRING 0 # field will accept any string
define GT_INTEGER 1 # field will only accept decimal integers
define GT_BOOLEAN 8 # field will only accept "Yes" or "No"
define GT_CHAR 16 # field will accept any single character
define GT_LONGINT 32 # field will accept only long decimal integers
define GT_FNAME 64 # field will only accept filenames
define GT_UPCASE 128 # OR with this to force a field to uppercase
# Control values for "data" statements. These are used
# to control the behaviour of the line editor.
define GEND 1 # editing starts at the end of the field
define GNOCLEAR 2 # non-edit first key shouldn't clear the field
define GSECRET 4 # the input should not display
define GLEFT 1024 # the field should be left-justified
define GNODELIM 2048 # no delimiters should be displayed
# Menu control values. These can be ORed together to
# control the behaviour of menus.
define MNOCANCEL 1 # <Esc> is not to cancel the menu
define MNOLIGHTBAR 2 # no lightbar should be drawn
define MSAVEDEFAULT 4 # save the last choice across calls
define MCHECK 8 # add checkmarks to items on <space>
define MLREXIT 16 # exit menu on left/right arrow