51 #ifndef DIALOG_CONTROLS_H_INCLUDED 52 #define DIALOG_CONTROLS_H_INCLUDED 107 #define DIALOG_CONTROL_TAG (*((const unsigned int *)"DLGC")) 310 int iX,
int iY,
int iWidth,
int iHeight,
311 const char *szTitle,
const char *szPropertyList);
570 const char *pCaption;
574 if(!pCaption || !*pCaption)
579 return(atoi(pCaption));
599 char tbuf[64], tbuf2[4];
600 const char *pF = szFormat;
612 snprintf(tbuf,
sizeof(tbuf), pF, iValue);
632 const char *pCaption;
636 if(!pCaption || !*pCaption)
641 return(atol(pCaption));
661 char tbuf[64], tbuf2[4];
662 const char *pF = szFormat;
674 snprintf(tbuf,
sizeof(tbuf), pF, lValue);
695 const char *pCaption;
699 if(!pCaption || !*pCaption)
704 return(atoll(pCaption));
722 static __inline__
void WBDialogControlSetCaptionLongLong(
WBDialogControl *pCtrl,
WB_INT64 llValue,
const char *szFormat)
724 char tbuf[128], tbuf2[8];
725 const char *pF = szFormat;
741 snprintf(tbuf,
sizeof(tbuf), pF, llValue);
859 #ifdef DIALOG_SUPPORT_C 861 #else // !DIALOG_SUPPORT_C 863 #endif // DIALOG_SUPPORT_C 883 #ifdef DIALOG_SUPPORT_C 885 #else // !DIALOG_SUPPORT_C 887 #endif // DIALOG_SUPPORT_C 1135 #define WB_MIN_STD_CTRL_ID 0x7ffffff0 1136 #define IDOK 0x7ffffff0 1137 #define IDNO 0x7ffffff1 1138 #define IDYES 0x7ffffff2 1139 #define IDABORT 0x7ffffff3 1140 #define IDRETRY 0x7ffffff4 1141 #define IDIGNORE 0x7ffffff5 1142 #define IDCANCEL 0x7fffffff 1149 // standard atoms for control types - string definitions 1154 #define FRAME_CONTROL_STR "Frame" 1155 #define TEXT_CONTROL_STR "Text" 1156 #define ICON_CONTROL_STR "Icon" 1157 #define IMAGE_CONTROL_STR "Image" 1158 #define EDIT_CONTROL_STR "Edit" 1159 #define PUSHBUTTON_CONTROL_STR "PushButton" 1160 #define DEFPUSHBUTTON_CONTROL_STR "DefPushButton" 1161 #define CANCELBUTTON_CONTROL_STR "CancelButton" 1162 #define RADIOBUTTON_CONTROL_STR "RadioButton" 1163 #define FIRSTRADIOBUTTON_CONTROL_STR "FirstRadioButton" 1164 #define CHECKBUTTON_CONTROL_STR "CheckButton" 1165 #define TRISTATEBUTTON_CONTROL_STR "TriStateButton" 1166 #define HSCROLL_CONTROL_STR "HScroll" 1167 #define VSCROLL_CONTROL_STR "VScroll" 1168 #define SLIDER_CONTROL_STR "Slider" 1169 #define KNOB_CONTROL_STR "Knob" 1170 #define LIST_CONTROL_STR "List" 1171 #define COMBO_CONTROL_STR "Combo" 1172 #define TREE_CONTROL_STR "Tree" 1173 #define COMBOTREE_CONTROL_STR "ComboTree" 1174 #define FILE_LIST_CONTROL_STR "FileList" 1175 #define FILE_COMBO_CONTROL_STR "FileCombo" 1176 #define PATH_TREE_CONTROL_STR "PathTree" 1177 #define TAB_CONTROL_STR "Tab" 1183 // atoms and strings for standard control types (doxygen - these are documented in dialog_controls.c) 1184 #ifndef DIALOG_SUPPORT_C 1286 #endif // DIALOG_SUPPORT_C 1297 #define WB_LIST_NONE 0 1298 #define WB_LIST_SELCHANGE 1 1299 #define WB_LIST_DBLCLICK 2 1307 // control-specific definitions 1496 void *(*pfnAllocator)(
const void *,
int),
void (*pfnDestructor)(
void *),
1498 int (*pfnSort)(
const void *,
const void *));
1508 #define DLGInitControlListInfoDefault(X) \ 1509 DLGInitControlListInfo(X, ListInfoFlags_SORTED, DLGCDefaultListInfoAllocator, WBFree, NULL, NULL) 1536 int bAllocator,
void *(*pfnAllocator)(
const void *,
int),
1537 int bDestructor,
void (*pfnDestructor)(
void *),
1539 int bSort,
int (*pfnSort)(
const void *,
const void *));
1690 long lData0,
long lData1,
long lData2,
long lData3,
long lData4)
1694 if(pDialogControl->
pOwner)
1706 XClientMessageEvent evt;
1708 evt.type=ClientMessage;
1711 evt.display=pDisplay;
1713 evt.message_type=aNotify;
1716 evt.data.l[0] = lData0;
1717 evt.data.l[1] = lData1;
1718 evt.data.l[2] = lData2;
1719 evt.data.l[3] = lData3;
1720 evt.data.l[4] = lData4;
1744 long lData0,
long lData1,
long lData2,
long lData3,
long lData4)
1748 XClientMessageEvent evt = {
1749 .type=ClientMessage,
1753 .window=pDialogControl->
wID,
1754 .message_type=aNotify,
1757 evt.data.l[0] = lData0;
1758 evt.data.l[1] = lData1;
1759 evt.data.l[2] = lData2;
1760 evt.data.l[3] = lData3;
1761 evt.data.l[4] = lData4;
1780 long lData0,
long lData1,
long lData2,
long lData3,
long lData4)
1784 if(pDialogControl->
pOwner)
1786 XClientMessageEvent evt = {
1787 .type=ClientMessage,
1792 .message_type=aNotify,
1795 evt.data.l[0] = lData0;
1796 evt.data.l[1] = lData1;
1797 evt.data.l[2] = lData2;
1798 evt.data.l[3] = lData3;
1799 evt.data.l[4] = lData4;
1824 long lData0,
long lData1,
long lData2,
long lData3,
long lData4)
1828 XClientMessageEvent evt = {
1829 .type=ClientMessage,
1833 .window=pDialogControl->
wID,
1834 .message_type=aNotify,
1837 evt.data.l[0] = lData0;
1838 evt.data.l[1] = lData1;
1839 evt.data.l[2] = lData2;
1840 evt.data.l[3] = lData3;
1841 evt.data.l[4] = lData4;
1848 #endif // __cplusplus 1851 #endif // DIALOG_CONTROLS_H_INCLUDED STATIC - display with a 3D-looking border.
WBDialogPropList * pPropList
pointer to the property list (may be NULL)
const Atom aLOSTFOCUS
CONTROL_NOTIFY ClientMessage for LOSTFOCUS event.
BUTTON - Default Push Button (activate by <ENTER>)
Structure identifying one of the controls that appears on a dialog window.
re-alignment with respect to center (as a percentage, stretching allowed)
'window helper' main header file for the X11workbench Toolkit API
unsigned long ulFlags
generic flag bits
static __inline__ const char * DLGGetControlProperty(WBDialogWindow *pDialog, int iControlID, Atom aPropName)
Convenience function to query a text property for a dialog control based on its control ID.
const Atom aGOTFOCUS
CONTROL_NOTIFY ClientMessage for GOTFOCUS event.
CONTROL bits, reserved 12.
ControlGetSetProperties
Control 'Get/Set' properties used by aDLGC_CONTROL_SET and aDLGC_CONTROL_GET.
const Atom aDLGC_PROP_NOTIFY
DLGC_PROP_NOTIFY ClientMessage, notify control of property change.
STATIC - 'type mask' for static controls.
static __inline__ void DLGNotifyOwner(WBDialogControl *pDialogControl, Atom aNotify, long lData0, long lData1, long lData2, long lData3, long lData4)
Notify Owner by calling the owner window's callback function directly with an event.
void * WBGetWindowData(Window wID, int iIndex)
Gets the data associated with this window and the specified index.
CUSTOM - reserved bit 25.
CONTROL bits, reserved 06.
void DLGDelControlListEntry(WBDialogControl *pCtrl, int iIndex)
Delete a list entry from a control's list info at a specified index (or deletes ALL entries)
const Atom aDLGC_CONTROL_SET
CONTROL_SET ClientMessage - use this to set specific supported control properties by sending it to th...
this control supports a LISTINFO property.
CONTROL bits, reserved 00.
const Atom aPATH_TREE_CONTROL
Standard Dialog Control - path tree - directory hierarchy - see PATH_TREE_CONTROL_STR.
BUTTON - Tri-state button.
static __inline__ void DLGSetControlText(WBDialogWindow *pDialog, int iControlID, const char *szText)
Convenience function to assign a dialog control's TEXT based on its control ID.
BUTTON - Checkbox button.
CUSTOM - reserved bit 27.
const Atom aMOUSE_DBLCLICK
CONTROL_NOTIFY ClientMessage for MOUSE_DBLCLICK event.
static __inline__ WBDialogControl * DLGGetDialogControlStructFromID(WBDialogWindow *pDialog, int iControlID)
Returns a pointer to the WBDialogControl structure for a dialog control with validation....
CUSTOM - reserved bit 31.
CONTROL bits, reserved 01.
WBDialogControl * WBDialogControlCreate(Atom aClass, WBDialogWindow *pOwner, WBDialogEntry *pDialogEntry, int iX, int iY, int iWidth, int iHeight, const char *szTitle, const char *szPropertyList)
Create a dialog control window.
'tristate' flag. when 'setting', -1 'toggles', 1 sets it, 0 clears it. when 'getting',...
const Atom aLIST_NOTIFY
CONTROL_NOTIFY ClientMessage for LIST_NOTIFY event.
const Atom aDLGC_CONTROL_GET
CONTROL_GET ClientMessage - use this to get specific supported control properties by sending it to th...
void DLGSetControlListSelection(WBDialogControl *pCtrl, int iIndex)
Assign the current selection index for a single-selection list.
WBDialogWindow * pOwner
pointer to owner dialog box
const Atom aKEY_DOWN
CONTROL_NOTIFY ClientMessage for KEY_DOWN event.
int WBWindowDispatch(Window wID, XEvent *pEvent)
Dispatches a window XEvent. May be called directly.
int DLGAddControlListEntry(WBDialogControl *pCtrl, const char *pData, long cbData, int iIndex)
Add a list entry to a control's list info.
int DLGInitControlListInfo(WBDialogControl *pCtrl, int nFlags, void *(*pfnAllocator)(const void *, int), void(*pfnDestructor)(void *), void(*pfnDisplay)(WBDialogControl *, void *, int, WBGC, WB_GEOM *, WB_FONTC), int(*pfnSort)(const void *, const void *))
Initialize the 'List Entry' for a control, specifying various callbacks and flags.
default position re-alignment with respect to center (as a percentage, no stretching)
CUSTOM - reserved bit 26.
Atom aDLGC_PATH
dialog control PATH property, for file and directory controls
const Atom aDEFPUSHBUTTON_CONTROL
Standard Dialog Control - default Pushbutton control (has dark border, accepts <ENTER> as hotkey) - s...
BUTTON - Cancel Push Button (activate by <ESC>)
XColor clrAFG
active state-based foreground color
XColor clrABG
active state-based background color
int WBPostPriorityEvent(Window wID, XEvent *pEvent)
Places a copy of the specified event at the end of the priority (internal) event queue.
const void * DLGGetControlListData(WBDialogControl *pCtrl, int iIndex)
Retrieve the data pointer for a single list entry (listbox, combo, and tree controls only)
internal wrapper struct for X11 'geometry' definition
static __inline__ void DLGSetControlCaption(WBDialogWindow *pDialog, int iControlID, const char *szCaption)
Convenience function to assign a dialog control's caption based on its control ID.
const Atom aDIALOG_INIT
DIALOG_INIT ClientMessage, sent to dialog window callback on frame create.
void WBInvalidateRegion(Window wID, Region rgn, int bPaintFlag)
'Paint' helper, invalidates a region for asynchronous Expose event generation
STATIC - Image control window.
static __inline__ void WBDialogControlInvalidateRegion(WBDialogControl *pDialogControl, Region rgn, int bPaintFlag)
Convenience function, invalidates a region for a dialog box control.
BUTTON - Radio button (generic)
STATIC - default (reserved)
Atom aClass
basic control class atom
const Atom aMOUSE_CLICK
CONTROL_NOTIFY ClientMessage for MOUSE_CLICK event.
default position re-alignment with respect to center (as a percentage, no stretching)
const Atom aLIST_CONTROL
Standard Dialog Control - list - single, multi, extended select (h, v, multicol) - see LIST_CONTROL_S...
Structure identifying a dialog (frame) window.
void WBDialogControlDelDialogProp(WBDialogControl *pCtrl, Atom aProp)
Low-level dialog control property removal.
WBWinEvent pDLGControlCallback
control's callback function
static __inline__ int DLGSetControlProperty(WBDialogWindow *pDialog, int iControlID, Atom aPropName, const char *szPropVal)
Convenience function to assign a text property for a dialog control based on its control ID.
const Atom aRADIOBUTTON_CONTROL
Standard Dialog Control - radio button - see RADIOBUTTON_CONTROL_STR.
const char * WBDialogControlGetProperty(WBDialogControl *pCtrl, Atom aPropName)
Mid-level dialog control property retrieval (character string)
const Atom aSLIDER_CONTROL
Standard Dialog Control - volume control (slider bar) (h or v depending on geometry) - see SLIDER_CON...
void WBInvalidateGeom(Window wID, const WB_GEOM *pGeom, int bPaintNow)
'Paint' helper, invalidates a geometry for asynchronous Expose event generation
resize maintains position/size with respect to left
resize maintains position/size with respect to right
int nMaxProps
maximum number of available WB_DIALOG_PROP structures in aDlgProp
resize maintains position/size with respect to top
CONTROL bits, reserved 04.
STATIC - Text control window.
XColor clrBG
background color
void WBDialogControlSetIconPixmap(WBDialogControl *pCtrl, Pixmap pixmap, Pixmap pixmap2)
Assign the ICON (image) property for a control, which consists of 2 pixmaps.
static __inline__ void WBDialogControlInvalidateGeom(WBDialogControl *pDialogControl, const WB_GEOM *pGeom, int bPaintFlag)
Convenience function, invalidates a Geom for a dialog box control.
void * pVal
pointer to data, as needed (may be allocated, some property types auto-free the data)
const Atom aTAB_CONTROL
Standard Dialog Control -'tab' container (auto enable/disable contents) - see TAB_CONTROL_STR.
const Atom aTEXT_CONTROL
Standard Dialog Control - static text (single or multi-line) - see TEXT_CONTROL_STR.
re-alignment with respect to center (as a percentage, stretching allowed)
Window DLGGetDialogControl(WBDialogWindow *pDialog, int iControlID)
returns the Window ID of a member control of the dialog window using the 'control ID'
Pixmap WBDialogControlGetPixmap(WBDialogControl *pCtrl)
Obtain the assigned PIXMAP (image) property for a control.
int WBDialogControlSetDialogProp(WBDialogControl *pCtrl, WB_DIALOG_PROP *pPropVal)
Low-level dialog control property assignment.
XColor clrFG
foreground color
BUTTON - 'First' radio button in a group.
const Atom aCOMBO_CONTROL
Standard Dialog Control - classic 'combo box' control - see COMBO_CONTROL_STR.
int DLGGetControlListSelectionBits(WBDialogControl *pCtrl, unsigned int *piBits, int nSize)
Query the selection state for multiple items within a control's list info.
char * DLGGetControlListSelectionText(WBDialogControl *pCtrl)
Query the selection text as multiple strings in an allocated buffer.
resize maintains position/size with respect to bottom
const Atom aFILE_COMBO_CONTROL
Standard Dialog Control - file combo control - see FILE_COMBO_CONTROL_STR.
const Atom aVSCROLL_CONTROL
Standard Dialog Control - vertical scroll - see VSCROLL_CONTROL_STR.
int WBDialogControlSetPropList(WBDialogControl *pCtrl, const char *szPropList)
Mid-level dialog control property list assignment.
XColor clrHFG
highlighted state-based foreground color
const Atom aDLGC_TEXT
dialog control TEXT property - see WBDialogControlGetText()
CONTROL bits, reserved 07.
struct s_WB_DIALOG_PROPLIST WBDialogPropList
Dialog Property List, container for WB_DIALOG_PROP.
Window wID
Window ID of the dialog control window.
default position re-alignment with respect to center (as a percentage, no stretching)
ListInfoFlags
Create flags specified in the call to DLGInitControlListInfo()
re-alignment with respect to center (as a percentage, stretching allowed)
void DLGRegisterControlCallback(WBDialogControl *pDialogControl, const char *szClassName, WBWinEvent pCallback)
Register the dialog control's callback function and class name.
XColor clrBD2
3D border color 2 (light)
const Atom aCOMBOTREE_CONTROL
Standard Dialog Control - 'combo tree' (tree with interlocked edit/text box like combo box) - see COM...
CONTROL bits, reserved 03.
static __inline__ int WBDialogControlGetCaptionInt(WBDialogControl *pCtrl)
Returns an integer from the text of the 'CAPTION' property of a dialog control.
CONTROL bits, reserved 11.
const Atom aEDIT_CONTROL
Standard Dialog Control - editable text (single or multi-line, scrollable, clipboard) - see EDIT_CONT...
static __inline__ const char * WBDialogControlGetText(WBDialogControl *pCtrl)
Obtain the assigned TEXT property for a control, which is different from the CAPTION or Title.
CONTROL bits, reserved 08.
int WBDialogControlGetCheck(WBDialogControl *pCtrl)
Retrieve the 'CHECKED' property from a dialog control. Returns '0' (un-checked) if not applicable.
unsigned long lVal
'long' data value, assigned as needed
const Atom aKEYSTROKE
CONTROL_NOTIFY ClientMessage for KEYSTROKE event.
unsigned int ulTag
The value DIALOG_CONTROL_TAG.
CUSTOM - reserved bit 24.
Dialog property storage structure.
CONTROL bits, reserved 02.
XColor clrHBG
highlighted state-based background color
void * WBDialogControlGetProperty2(WBDialogControl *pCtrl, Atom aPropName)
Mid-level dialog control property list retrieval (generic pointer)
CONTROL bits, reserved 14.
const Atom aCANCELBUTTON_CONTROL
Standard Dialog Control - cancel pushbutton control (accepts <ESC> as hotkey) - see CANCELBUTTON_CONT...
int(* WBWinEvent)(Window wID, XEvent *pEvent)
event callback function type for window events
WBDialogEntry * pDlgControlEntry
pointer to dialog box's WBDialogEntry
static __inline__ const WBDialogPropList * WBDialogControlGetPropList(WBDialogControl *pCtrl)
Low-level dialog control property list retrieval.
int nProps
current number of (contiguous) properties in 'aDlgProp'
XColor clrBD3
3D border color 3 (dark)
STATIC - frame control window.
const Atom aHSCROLL_CONTROL
Standard Dialog Control - horizontal scroll - see HSCROLL_CONTROL_STR.
#define DIALOG_CONTROL_TAG
TAG for the WBDialogControl structure.
CUSTOM - reserved bit 30.
struct s_WB_DIALOG_CONTROL WBDialogControl
Structure identifying the properties of a dialog box control.
const Atom aCHECKBUTTON_CONTROL
Standard Dialog Control - check[box] button - push-on/push-off with 'check mark' (or whatever) - see ...
const Atom aKEY_UP
CONTROL_NOTIFY ClientMessage for KEY_UP event.
CUSTOM - reserved bit 29.
static __inline__ const char * DLGGetControlCaption(WBDialogWindow *pDialog, int iControlID)
Convenience function to query a dialog control's caption based on its control ID.
struct s_WB_DIALOG_PROP WB_DIALOG_PROP
Dialog property storage structure.
const Atom aMOUSE_DRAG
CONTROL_NOTIFY ClientMessage for MOUSE_DRAG event.
const char * WBDialogControlGetCaption(WBDialogControl *pCtrl)
Obtain a pointer to the assigned text for the 'CAPTION' property of a dialog control.
resize maintains position/size with respect to top
last one, update as needed when more flags are added
int DLGModifyControlListInfo(WBDialogControl *pCtrl, int bFlags, int nFlags, int bAllocator, void *(*pfnAllocator)(const void *, int), int bDestructor, void(*pfnDestructor)(void *), int bDisplay, void(*pfnDisplay)(WBDialogControl *, void *, int, WBGC, WB_GEOM *, WB_FONTC), int bSort, int(*pfnSort)(const void *, const void *))
Modify the 'List Entry' for a control, specifying various callbacks and flags.
const WB_DIALOG_PROP * WBDialogControlGetDialogProp(WBDialogControl *pCtrl, Atom aProp)
Low-level dialog control property retrieval.
const Atom aIMAGE_CONTROL
Standard Dialog Control - generic image/pixmap holder - see IMAGE_CONTROL_STR.
const Atom aTEXTSELECT_CHANGE
CONTROL_NOTIFY ClientMessage for TEXTSELECT_CHANGE event.
char * pCaption
allocated pointer to caption, in lieu of using a WM_NAME property (may be NULL)
static __inline__ void WBDialogControlSetText(WBDialogControl *pCtrl, const char *szText)
Assign the TEXT property for a control, which is different from the CAPTION or Title.
CONTROL bits, reserved 09.
WB_DIALOG_PROP aDlgProp[1]
Pre-allocated array of (contiguous) structures for property storage.
Display * WBGetWindowDisplay(Window wID)
returns the Display associated with a window
CONTROL_FLAGS
Various bit flags used for controls, defined here for convenience.
int DLGGetControlListSelection(WBDialogControl *pCtrl)
Obtain the current selection index for a single-selection list.
void DLGSetControlListSelectionValue(WBDialogControl *pCtrl, int iIndex, int iSelState)
Assign the selection state for a specific index within a control's list info.
const Atom aKNOB_CONTROL
Standard Dialog Control - "volume knob" (270 degrees of rotation, left to right) - see KNOB_CONTROL_S...
resize maintains position/size with respect to right
static __inline__ void WBDialogControlSetCaptionLong(WBDialogControl *pCtrl, long lValue, const char *szFormat)
Assign a long integer as text to the 'CAPTION' property of a dialog control.
const Atom aFIRSTRADIOBUTTON_CONTROL
Standard Dialog Control - 'first' radio button - defines start of radio button 'group' - see FIRSTRAD...
STATIC - Icon control window.
const Atom aTREE_CONTROL
Standard Dialog Control - class 'tree' control - see TREE_CONTROL_STR.
re-alignment with respect to center (as a percentage, stretching allowed)
static __inline__ long WBDialogControlGetCaptionLong(WBDialogControl *pCtrl)
Returns a long integer from the text of the 'CAPTION' property of a dialog control.
static __inline__ void DLGNotifyOwnerAsync(WBDialogControl *pDialogControl, Atom aNotify, long lData0, long lData1, long lData2, long lData3, long lData4)
Notify Owner by posting an event that will ASYNCHRONOUSLY be sent to the owner window's callback func...
int DLGScrollBarHandler(Window wID, WBDialogControl *pCtrl, XEvent *pEvent)
Scroll bar event filter for dialog control callback function. Generates scroll events.
static __inline__ void DLGNotifySelfAsync(WBDialogControl *pDialogControl, Atom aNotify, long lData0, long lData1, long lData2, long lData3, long lData4)
Notify 'self' by posting an event that will ASYNCHRONOUSLY be sent to the window's callback function.
const Atom aBUTTON_PRESS
CONTROL_NOTIFY ClientMessage for BUTTON_PRESS event.
resize maintains position/size with respect to left
default position re-alignment with respect to center (as a percentage, no stretching)
An allocated structure containing XFontStruct, XFontInfo, and XftFont [as applicable] for a specified...
const Atom aICON_CONTROL
Standard Dialog Control - icon container (has a nice 3D border) - see ICON_CONTROL_STR.
ControlListIndex
LIST-related constants for the index of an item within a list.
const Atom aTRISTATEBUTTON_CONTROL
Standard Dialog Control - tristate - like check, but with a third state - see TRISTATEBUTTON_CONTROL_...
static __inline__ void DLGNotifySelf(WBDialogControl *pDialogControl, Atom aNotify, long lData0, long lData1, long lData2, long lData3, long lData4)
Notify 'self' by calling the window's own callback function directly with an event.
Atom aProp
Atom identifying the property.
Dialog Property List, container for WB_DIALOG_PROP.
BUTTON - 'type mask' for buttons.
const Atom aFRAME_CONTROL
Standard Dialog Control - transparent frame with optional text - see FRAME_CONTROL_STR.
BUTTON - Push button (generic)
resize maintains position/size with respect to bottom
horizontal alignment mask
alignment mask (both horizontal and vertical)
internal wrapper struct for GC with local cache
alignment mask (both horizontal and vertical)
int WBDialogControlSetProperty(WBDialogControl *pCtrl, Atom aPropName, const char *szPropVal)
Mid-level dialog control property assignment (character string)
const Atom aFILE_LIST_CONTROL
Standard Dialog Control - File List - see FILE_LIST_CONTROL_STR.
CUSTOM - reserved bit 28.
Pixmap WBDialogControlGetIconPixmap(WBDialogControl *pCtrl, Pixmap *pPixmap2)
Obtain the assigned ICON (image) property for a control, which consists of 2 pixmaps.
void * DLGCDefaultListInfoAllocator(const void *pData, int cbData)
The default 'List Info' data allocator for a control's list info.
void WBDialogControlSetCheck(WBDialogControl *pCtrl, int iCheck)
Assign the TEXT property for a control, which is different from the CAPTION or Title.
CONTROL bits, reserved 13.
const Atom aPUSHBUTTON_CONTROL
Standard Dialog Control - Pushbutton control - see PUSHBUTTON_CONTROL_STR.
void WBDialogControlsInit(void)
Initialization function for dialog controls.
Window wID
window ID of the dialog (frame) window
void WBDialogControlSetPixmap(WBDialogControl *pCtrl, Pixmap pixmap)
Assign the PIXMAP (image) property for a control.
static __inline__ WBDialogControl * WBGetDialogEntryControlStruct(WBDialogWindow *pDialog, int iControlID)
Returns a pointer to the WBDialogControl structure for a dialog control based on its ID and containin...
always insert at beginning
const char * DLGGetControlListText(WBDialogControl *pCtrl, int iIndex)
Retrieve the text poiner for a single list entry (listbox, combo, and tree controls only)
void WBDialogControlSetCaption(WBDialogControl *pCtrl, const char *szCaption)
Assign text to the 'CAPTION' property of a dialog control.
CONTROL bits, reserved 05.
static __inline__ void WBDialogControlSetCaptionInt(WBDialogControl *pCtrl, int iValue, const char *szFormat)
Assign an integer as text to the 'CAPTION' property of a dialog control.
static __inline__ WBDialogControl * DLGGetDialogControlStruct(Window wID)
Returns a pointer to the WBDialogControl structure for a dialog control with validation....
Structure identifying the properties of a dialog box control.
int cbStructSize
assigned at allocation time, the total size of this structure
void WBDialogControlSetProperty2(WBDialogControl *pCtrl, Atom aPropName, void *szPropVal)
Mid-level dialog control property list assignment (generic pointer)
const Atom aTEXT_CHANGED
CONTROL_NOTIFY ClientMessage for TEXT_CHANGED event.
'checked' flag. when 'setting', -1 'toggles', 1 sets it, 0 clears it. when 'getting',...
static __inline__ const char * DLGGetControlText(WBDialogWindow *pDialog, int iControlID)
Convenience function to query a dialog control's TEXT based on its control ID.
CONTROL bits, reserved 10.