X11workbench Toolkit  1.0

Macros

#define DIALOG_CONTROL_TAG   (*((const unsigned int *)"DLGC"))
 TAG for the WBDialogControl structure.
 

Enumerations

enum  ControlGetSetProperties {
  ControlGetSet_CHECK = 1,
  ControlGetSet_TRISTATE = 2,
  ControlGetSet_LAST = 2
}
 Control 'Get/Set' properties used by aDLGC_CONTROL_SET and aDLGC_CONTROL_GET. More...
 
enum  CONTROL_FLAGS {
  CONTROL_Reserved00 = 0x00000001,
  CONTROL_Reserved01 = 0x00000002,
  CONTROL_Reserved02 = 0x00000004,
  CONTROL_Reserved03 = 0x00000008,
  CONTROL_Reserved04 = 0x00000010,
  CONTROL_Reserved05 = 0x00000020,
  CONTROL_Reserved06 = 0x00000040,
  CONTROL_Reserved07 = 0x00000080,
  CONTROL_Reserved08 = 0x00000100,
  CONTROL_Reserved09 = 0x00000200,
  CONTROL_Reserved10 = 0x00000400,
  CONTROL_Reserved11 = 0x00000800,
  CONTROL_Reserved12 = 0x00001000,
  CONTROL_Reserved13 = 0x00002000,
  CONTROL_Reserved14 = 0x00004000,
  CONTROL_SupportListInfo = 0x00008000,
  STATIC_Default = 0x00000000,
  STATIC_Frame = 0x00010000,
  STATIC_Text = 0x00020000,
  STATIC_Icon = 0x00030000,
  STATIC_Image = 0x00040000,
  STATIC_TYPEMASK = 0x00070000,
  STATIC_3DBorder = 0x00080000,
  BUTTON_PushButton = 0x00010000,
  BUTTON_DefPushButton = 0x00020000,
  BUTTON_CancelButton = 0x00030000,
  BUTTON_RadioButton = 0x00040000,
  BUTTON_FirstRadioButton = 0x00050000,
  BUTTON_CheckButton = 0x00060000,
  BUTTON_TriStateButton = 0x00070000,
  BUTTON_TYPEMASK = 0x000f0000,
  CONTROL_VAlignFixed = WBDialogEntry_VAlignFixed,
  CONTROL_VAlignTop = WBDialogEntry_VAlignTop,
  CONTROL_VAlignBottom = WBDialogEntry_VAlignBottom,
  CONTROL_VAlignCenter = WBDialogEntry_VAlignCenter,
  CONTROL_VAlignMask = WBDialogEntry_VAlignMask,
  CONTROL_HAlignFixed = WBDialogEntry_HAlignFixed,
  CONTROL_HAlignLeft = WBDialogEntry_HAlignLeft,
  CONTROL_HAlignRight = WBDialogEntry_HAlignRight,
  CONTROL_HAlignCenter = WBDialogEntry_HAlignCenter,
  CONTROL_HAlignMask = WBDialogEntry_HAlignMask,
  CONTROL_AlignMask = WBDialogEntry_AlignMask,
  CUSTOM_Reserved24 = 0x01000000,
  CUSTOM_Reserved25 = 0x02000000,
  CUSTOM_Reserved26 = 0x04000000,
  CUSTOM_Reserved27 = 0x08000000,
  CUSTOM_Reserved28 = 0x10000000,
  CUSTOM_Reserved29 = 0x20000000,
  CUSTOM_Reserved30 = 0x40000000,
  CUSTOM_Reserved31 = 0x80000000
}
 Various bit flags used for controls, defined here for convenience. More...
 
#define WB_MIN_STD_CTRL_ID   0x7ffffff0
 
#define IDOK   0x7ffffff0
 
#define IDNO   0x7ffffff1
 
#define IDYES   0x7ffffff2
 
#define IDABORT   0x7ffffff3
 
#define IDRETRY   0x7ffffff4
 
#define IDIGNORE   0x7ffffff5
 
#define IDCANCEL   0x7fffffff
 
#define IDSTATIC   -1
 
#define IDNONE   0
 
#define WB_LIST_NONE   0
 
#define WB_LIST_SELCHANGE   1
 
#define WB_LIST_DBLCLICK   2
 

Detailed Description

Definitions for dialog controls

Macro Definition Documentation

◆ IDABORT

#define IDABORT   0x7ffffff3

'ABORT' button

Definition at line 1139 of file dialog_controls.h.

◆ IDCANCEL

#define IDCANCEL   0x7fffffff

'CANCEL' button

Definition at line 1142 of file dialog_controls.h.

◆ IDIGNORE

#define IDIGNORE   0x7ffffff5

'IGNORE' button

Definition at line 1141 of file dialog_controls.h.

◆ IDNO

#define IDNO   0x7ffffff1

'NO' button

Definition at line 1137 of file dialog_controls.h.

◆ IDNONE

#define IDNONE   0

'no ID' - this may be repeated as needed for things that need no ID

Definition at line 1144 of file dialog_controls.h.

◆ IDOK

#define IDOK   0x7ffffff0

'OK' button

Definition at line 1136 of file dialog_controls.h.

◆ IDRETRY

#define IDRETRY   0x7ffffff4

'RETRY' button

Definition at line 1140 of file dialog_controls.h.

◆ IDSTATIC

#define IDSTATIC   -1

non-unique 'static' item; may exist more than once within a dialog resource

Definition at line 1143 of file dialog_controls.h.

◆ IDYES

#define IDYES   0x7ffffff2

'YES' button

Definition at line 1138 of file dialog_controls.h.

◆ WB_LIST_DBLCLICK

#define WB_LIST_DBLCLICK   2

double click by default drives an 'End Dialog' with IDOK

Definition at line 1299 of file dialog_controls.h.

◆ WB_LIST_NONE

#define WB_LIST_NONE   0

'default' notification value (no action needed)

Definition at line 1297 of file dialog_controls.h.

◆ WB_LIST_SELCHANGE

#define WB_LIST_SELCHANGE   1

simple notification that the selection has changed

Definition at line 1298 of file dialog_controls.h.

◆ WB_MIN_STD_CTRL_ID

#define WB_MIN_STD_CTRL_ID   0x7ffffff0

minimum value for standard dialog control ID

Definition at line 1135 of file dialog_controls.h.

Enumeration Type Documentation

◆ CONTROL_FLAGS

Various bit flags used for controls, defined here for convenience.

Intended for the 'ulFlags' member of the WBDialogControl structure. Bits 0000ffff are 'common' flags for all controls. Bits 00ff0000 are control-specific flags. Bits ff000000 are 'reserved' for custom usage.

Enumerator
CONTROL_Reserved00 

CONTROL bits, reserved 00.

CONTROL_Reserved01 

CONTROL bits, reserved 01.

CONTROL_Reserved02 

CONTROL bits, reserved 02.

CONTROL_Reserved03 

CONTROL bits, reserved 03.

CONTROL_Reserved04 

CONTROL bits, reserved 04.

CONTROL_Reserved05 

CONTROL bits, reserved 05.

CONTROL_Reserved06 

CONTROL bits, reserved 06.

CONTROL_Reserved07 

CONTROL bits, reserved 07.

CONTROL_Reserved08 

CONTROL bits, reserved 08.

CONTROL_Reserved09 

CONTROL bits, reserved 09.

CONTROL_Reserved10 

CONTROL bits, reserved 10.

CONTROL_Reserved11 

CONTROL bits, reserved 11.

CONTROL_Reserved12 

CONTROL bits, reserved 12.

CONTROL_Reserved13 

CONTROL bits, reserved 13.

CONTROL_Reserved14 

CONTROL bits, reserved 14.

CONTROL_SupportListInfo 

this control supports a LISTINFO property.

STATIC_Default 

STATIC - default (reserved)

STATIC_Frame 

STATIC - frame control window.

STATIC_Text 

STATIC - Text control window.

STATIC_Icon 

STATIC - Icon control window.

STATIC_Image 

STATIC - Image control window.

STATIC_TYPEMASK 

STATIC - 'type mask' for static controls.

STATIC_3DBorder 

STATIC - display with a 3D-looking border.

BUTTON_PushButton 

BUTTON - Push button (generic)

BUTTON_DefPushButton 

BUTTON - Default Push Button (activate by <ENTER>)

BUTTON_CancelButton 

BUTTON - Cancel Push Button (activate by <ESC>)

BUTTON_RadioButton 

BUTTON - Radio button (generic)

BUTTON_FirstRadioButton 

BUTTON - 'First' radio button in a group.

BUTTON_CheckButton 

BUTTON - Checkbox button.

BUTTON_TriStateButton 

BUTTON - Tri-state button.

BUTTON_TYPEMASK 

BUTTON - 'type mask' for buttons.

CONTROL_VAlignFixed 

default position re-alignment with respect to center (as a percentage, no stretching)

CONTROL_VAlignTop 

resize maintains position/size with respect to top

CONTROL_VAlignBottom 

resize maintains position/size with respect to bottom

CONTROL_VAlignCenter 

re-alignment with respect to center (as a percentage, stretching allowed)

CONTROL_VAlignMask 

vertical alignment mask

CONTROL_HAlignFixed 

default position re-alignment with respect to center (as a percentage, no stretching)

CONTROL_HAlignLeft 

resize maintains position/size with respect to left

CONTROL_HAlignRight 

resize maintains position/size with respect to right

CONTROL_HAlignCenter 

re-alignment with respect to center (as a percentage, stretching allowed)

CONTROL_HAlignMask 

vertical alignment mask

CONTROL_AlignMask 

alignment mask (both horizontal and vertical)

CUSTOM_Reserved24 

CUSTOM - reserved bit 24.

CUSTOM_Reserved25 

CUSTOM - reserved bit 25.

CUSTOM_Reserved26 

CUSTOM - reserved bit 26.

CUSTOM_Reserved27 

CUSTOM - reserved bit 27.

CUSTOM_Reserved28 

CUSTOM - reserved bit 28.

CUSTOM_Reserved29 

CUSTOM - reserved bit 29.

CUSTOM_Reserved30 

CUSTOM - reserved bit 30.

CUSTOM_Reserved31 

CUSTOM - reserved bit 31.

Definition at line 1372 of file dialog_controls.h.

◆ ControlGetSetProperties

Control 'Get/Set' properties used by aDLGC_CONTROL_SET and aDLGC_CONTROL_GET.

Enumerator
ControlGetSet_CHECK 

'checked' flag. when 'setting', -1 'toggles', 1 sets it, 0 clears it. when 'getting', zero is 'unchecked', non-zero 'checked'

ControlGetSet_TRISTATE 

'tristate' flag. when 'setting', -1 'toggles', 1 sets it, 0 clears it. when 'getting', zero is 'normal', non-zero 'tristate'

ControlGetSet_LAST 

last one, update as needed when more flags are added

Definition at line 1352 of file dialog_controls.h.