home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
drdobbs
/
1991
/
05
/
d_flat
/
dialogs.c
< prev
next >
Wrap
Text File
|
1991-02-18
|
2KB
|
71 lines
/* ----------- dialogs.c --------------- */
#include "dflat.h"
DIALOGBOX( FileOpen )
DB_TITLE( "Open File", -1, -1, 19, 48)
CONTROL(TEXT, "~Filename", 2, 1, 1, 8, 0)
CONTROL(EDITBOX, NULL, 13, 1, 1, 29, ID_FILENAME)
CONTROL(TEXT, "Directory:", 2, 3, 1, 10, 0 )
CONTROL(TEXT, NULL, 13, 3, 1, 28, ID_PATH )
CONTROL(TEXT, "F~iles", 2, 5, 1, 5, 0 )
CONTROL(LISTBOX, NULL, 2, 6, 11, 16, ID_FILES )
CONTROL(TEXT, "~Directories", 19, 5, 1, 11, 0 )
CONTROL(LISTBOX, NULL, 19, 6, 11, 16, ID_DRIVE )
CONTROL(BUTTON, " ~OK ", 36, 7, 1, 8, ID_OK)
CONTROL(BUTTON, " ~Cancel ", 36, 12, 1, 8, ID_CANCEL)
ENDDB
DIALOGBOX( SaveAs )
DB_TITLE( "Save As", -1, -1, 19, 48)
CONTROL(TEXT, "~Filename", 2, 1, 1, 8, 0)
CONTROL(EDITBOX, NULL, 13, 1, 1, 29, ID_FILENAME)
CONTROL(TEXT, "Directory:", 2, 3, 1, 10, 0 )
CONTROL(TEXT, NULL, 13, 3, 1, 28, ID_PATH )
CONTROL(TEXT, "~Directories", 2, 5, 1, 11, 0 )
CONTROL(LISTBOX, NULL, 2, 6, 11, 16, ID_DRIVE )
CONTROL(BUTTON, " ~OK ", 36, 7, 1, 8, ID_OK)
CONTROL(BUTTON, " ~Cancel ", 36, 12, 1, 8, ID_CANCEL)
ENDDB
DIALOGBOX( MsgBox )
DB_TITLE( NULL, -1,-1, 0, 0)
CONTROL(TEXT, NULL, 1, 1, 0, 0, 0)
CONTROL(BUTTON, NULL, 0, 0, 1, 8, ID_OK)
CONTROL(0, NULL, 0, 0, 1, 8, ID_CANCEL)
ENDDB
DIALOGBOX( TabStops )
DB_TITLE( NULL, -1,-1, 10, 23)
CONTROL(TEXT, "Editor", 8, 0, 1, 6, 0)
CONTROL(TEXT, "Tab Positions", 4, 1, 1, 13, 0)
CONTROL(TEXT, "~2", 4, 3, 1, 1, 0)
CONTROL(RADIOBUTTON, OFF, 3, 4, 1, 3, ID_TAB2)
CONTROL(TEXT, "~4", 8, 3, 1, 1, 0)
CONTROL(RADIOBUTTON, OFF, 7, 4, 1, 3, ID_TAB4)
CONTROL(TEXT, "~6", 12, 3, 1, 1, 0)
CONTROL(RADIOBUTTON, OFF, 11, 4, 1, 3, ID_TAB6)
CONTROL(TEXT, "~8", 16, 3, 1, 1, 0)
CONTROL(RADIOBUTTON, OFF, 15, 4, 1, 3, ID_TAB8)
CONTROL(BUTTON, " OK ", 1, 6, 1, 8, ID_OK)
CONTROL(BUTTON, " Cancel ",12, 6, 1, 8, ID_CANCEL)
ENDDB