home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
yacl-012.zip
/
uidemo
/
dyndlg
/
desc.cxx
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-24
|
4KB
|
118 lines
/* C++ code file for creating control objects, generated via */
/* AWK script translat.awk. Must be used with the UI_Composite */
/* class. */
#include "ui/composit.h"
#include "dlgs.h"
#ifdef __BORLANDC__
#pragma warn -bei
#endif
UI_ViewDescriptor CarModel [] = {
{View_ExOrToggleButton, ID_CAR_MUSTANG, 10, 30, 90, 24, TRUE,
"Mustang", NULL},
{View_ExOrToggleButton, ID_CAR_PINTO, 10, 60, 90, 24, TRUE,
"Pinto", NULL},
{View_ExOrToggleButton, ID_CAR_TAURUS, 10, 90, 90, 24, TRUE,
"Taurus", NULL},
{View_None, 0, 0}
};
UI_ViewDescriptor CarStyle [] = {
{View_ExOrToggleButton, ID_CAR_SEDAN, 10, 30, 80, 24, TRUE,
"Sedan", NULL},
{View_ExOrToggleButton, ID_CAR_COUPE, 10, 60, 80, 24, TRUE,
"Coupe", NULL},
{View_ExOrToggleButton, ID_CAR_WAGON, 10, 90, 80, 24, TRUE,
"Wagon", NULL},
{View_None, 0, 0}
};
UI_ViewDescriptor CarOptions [] = {
{View_ToggleButton , ID_CAR_STEREO, 5, 30, 142, 24, TRUE,
"Stereo", NULL},
{View_ToggleButton , ID_CAR_SEATS, 5, 60, 142, 24, TRUE,
"Vinyl seats", NULL},
{View_ToggleButton , ID_CAR_SUNROOF, 5, 90, 142, 24, TRUE,
"Sunroof", NULL},
{View_ToggleButton , ID_CAR_TYRES, 5, 120, 142, 24, TRUE,
"Radial tyres", NULL},
{View_None, 0, 0}
};
UI_ViewDescriptor DLG_CarOptions_Item [] = {
{View_ExOrButtonGroup , ID_CAR_MODELGRP, 15, 14, 130, 144, TRUE,
"Car model", CarModel},
{View_ExOrButtonGroup , ID_CAR_STYLE, 175, 14, 120, 142, TRUE,
"Style", CarStyle},
{View_OrButtonGroup , ID_CAR_OPTIONS, 310, 14, 165, 150, TRUE,
"Options", CarOptions},
View_None, 0, 0
};
UI_ViewDescriptor CoffeeType [] = {
{View_ExOrToggleButton, ID_ESPRESSO, 10, 30, 130, 24, TRUE,
"Espresso", NULL},
{View_ExOrToggleButton, ID_CAPUCCINO, 10, 60, 130, 24, TRUE,
"Capuccino", NULL},
{View_ExOrToggleButton, ID_MOCHA, 10, 90, 130, 24, TRUE,
"Mocha Java", NULL},
{View_None, 0, 0}
};
UI_ViewDescriptor CoffeeAdditions [] = {
{View_ToggleButton , ID_SUGAR, 10, 30, 105, 24, TRUE,
"Sugar", NULL},
{View_ToggleButton , ID_CREAM, 10, 60, 105, 24, TRUE,
"Cream", NULL},
{View_None, 0, 0}
};
UI_ViewDescriptor DLG_Coffee_Item [] = {
{View_ExOrButtonGroup , ID_COFFEE_TYPE, 25, 12, 170, 138, FALSE,
"Coffee type:", CoffeeType},
{View_OrButtonGroup , ID_COFFEE_GRP2, 222, 12, 135, 94, FALSE,
"Along with:", CoffeeAdditions},
{View_None, 0, 0}
};
UI_ViewDescriptor SandwichFixings [] = {
{View_ToggleButton , ID_MUSTARD, 10, 30, 125, 24, TRUE,
"Mustard", NULL},
{View_ToggleButton , ID_MAYO, 10, 60, 125, 24, TRUE,
"Mayonnaise", NULL},
{View_ToggleButton , ID_PICKLE, 10, 90, 125, 24, TRUE,
"Pickle", NULL},
{View_None, 0, 0}
};
UI_ViewDescriptor DLG_Sandwich_Item [] = {
{View_StringView , ID_FIXINGS_LIST, 12, 12, 147, 132, TRUE,
"", NULL},
{View_OrButtonGroup , ID_DRESSINGS, 210, 12, 140, 120, TRUE,
"Along with", SandwichFixings},
{View_None, 0, 0}
};
#ifdef __BORLANDC__
#pragma warn .bei
#endif