| DIALOG_ITEM | Type (Structure)

dialogs.h

typedef struct {

| unsigned char Type;

| unsigned char Flags;

| unsigned char x0, y0;

| union {

| struct {

| void *Menu;

| unsigned char MaxMenuWidth;

| } dMenu;

| struct {

| short oText;

| void *PopUp;

| unsigned short oIndex;

| } dPopUp;

| struct {

| short oText;

| HANDLE (*GetPopUp)(unsigned short);

| unsigned short oIndex;

| } dDynPopUp;

| struct {

| short oText;

| HANDLE hPopUp;

| unsigned short dummy;

| unsigned short oIndex;

| } dHPopUp;

| struct DEditType {

| short oText;

| unsigned short bOffset;

| unsigned short Flen;

| unsigned char Dlen;

| } dEdit;

| struct {

| short oText;

| } dText;

| struct {

| short oText;

| unsigned char lButton, rButton;

| } dHeader;

| struct {

| short oIcon;

| } dIcon;

| struct {

| unsigned char x1, y1;

| unsigned char Index0, Index1;

| unsigned char NumDspFields, TotNumFields;

| unsigned char FieldHeight;

| } dScrollR;

| struct {

| unsigned short xFlags[4];

| } dFlags;

| } f;

} DIALOG_ITEM;

A scructure for defining dialog items.

This is the structure that defines an item in a DIALOG structure.
Note: To declare an Item of type D_END, which is all zeros, you can write:
`DIALOG_ITEM empty={.f={}};`

Deprecated alias: DIALOG_ITEMS

See also: DIALOG, DialogAdd, SIZED_DIALOG, DialogTypes