home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
editor
/
pmview
/
pmview.dlg
< prev
next >
Wrap
Text File
|
1994-01-31
|
7KB
|
184 lines
//UTILITIES
//DOUGLAS BOLING
//Vol. 9, No. 13
//PMVIEW.DLG
//=======================================================================
// PMVIEW.DLG -- Dialog templates for PMVIEW.C
//
// Copyright (c) 1990 Ziff Communications Co.
//
// Written by Douglas Boling
// Modified by K. L. Singer to add Hex string search and Hex / Line No.
// options in Search Goto dialog and Hex-EBCDIC option in Configuration.
// Also added display of File Name Filter in Open dialog box.
//=======================================================================
DLGTEMPLATE IDD_ABOUT
{
DIALOG "", 0, 0, 0, 200, 100,, FCF_DLGBORDER | WS_SAVEBITS
{
ICON ID_RESOURCE -1, 10, 65, 0, 0
CTEXT "PMVIEW", -1, 70, 80, 60, 8
CTEXT "Copyright (c) 1990", -1, 50, 65, 100, 8
CTEXT "Ziff Communications Co.", -1, 40, 55, 120, 8
CTEXT "Written by Douglas Boling", -1, 30, 45, 140, 8
CTEXT "Modified by Ken Singer", -1, 30, 35, 140, 8
CTEXT "04/13/92", -1, 30, 25, 140, 8
DEFPUSHBUTTON "OK" DID_OK, 80, 5, 40, 12, WS_GROUP
}
}
DLGTEMPLATE IDD_OPEN
{
DIALOG "Open a File", 0, 0, 0, 285, 135,, FCF_DLGBORDER | FCF_TITLEBAR
{
LTEXT "File ~Name:", -1, 6, 121, 50, 8, WS_GROUP |
DT_MNEMONIC
ENTRYFIELD "" IDD_FILEEDIT, 60, 121, 222, 8, ES_MARGIN
LTEXT "D~rives", -1, 6, 106, 28, 8, WS_GROUP |
DT_MNEMONIC
LISTBOX IDD_DRIVELIST, 6, 40, 28, 64
LTEXT "~Directories", -1, 38, 106, 80, 8, WS_GROUP |
DT_MNEMONIC
LISTBOX IDD_DIRLIST, 38, 40, 100, 68, LS_HORZSCROLL
LTEXT "~Files", -1, 142, 106, 122, 8, WS_GROUP |
DT_MNEMONIC
LISTBOX IDD_FILELIST, 142, 40, 142, 68, LS_HORZSCROLL
AUTOCHECKBOX "Include ~Hidden Files",IDD_INCHIDDEN,
6, 25, 120, 10, WS_GROUP
LTEXT "File Filter:", IDD_FILEFILTER,
130, 26, 150, 8
DEFPUSHBUTTON "OK" DID_OK, 71, 5, 50, 12, WS_GROUP
DEFPUSHBUTTON "Cancel" DID_CANCEL, 164, 5, 50, 12, WS_GROUP
}
}
DLGTEMPLATE IDD_CONFIGURE
{
DIALOG "Configuration", 0, 0, 0, 280, 150,, FCF_DLGBORDER | FCF_TITLEBAR
{
LTEXT "Colors", -1, 55, 140, 30, 8
LTEXT "~Foreground", -1, 10, 132, 50, 8, WS_GROUP |
DT_MNEMONIC
LISTBOX IDD_FCOLOR, 10, 90, 70, 40
LTEXT "~Backgound", -1, 90, 132, 50, 8, WS_GROUP |
DT_MNEMONIC
LISTBOX IDD_BCOLOR, 90, 90, 70, 40
LTEXT "Font ~Size", -1, 170, 132, 50, 8, WS_GROUP |
DT_MNEMONIC
LISTBOX IDD_CELLSIZE, 170, 90, 70, 40
GROUPBOX "Display Mode", -1, 10, 42, 80, 40
AUTORADIOBUTTON "~ASCII", IDD_DEFASCII, 13, 65, 70, 8, WS_GROUP
AUTORADIOBUTTON "~Hex-ASCII", IDD_DEFHEXASC, 13, 55, 70, 8
AUTORADIOBUTTON "Hex-~EBCDIC",IDD_DEFHEXEBC, 13, 45, 70, 8
AUTOCHECKBOX "S~croll bars",IDD_DEFSCROLL,
100, 65, 65, 10, WS_GROUP
AUTOCHECKBOX "File ~Position Line",IDD_DEFFILEPOS,
100, 55, 125, 10, WS_GROUP
AUTOCHECKBOX "Save ~Window Position",IDD_SAVEWINPOS,
100, 45, 120, 10, WS_GROUP
LTEXT "~Tab stop", -1, 205, 55, 45, 8, WS_GROUP |
DT_MNEMONIC
ENTRYFIELD "" IDD_DEFTABS, 250, 55, 15, 8, ES_MARGIN
AUTOCHECKBOX "Save values to ~disk", IDD_SAVE,
10, 25, 112, 10, WS_GROUP
DEFPUSHBUTTON "OK" DID_OK, 30, 5, 40, 12, WS_GROUP
DEFPUSHBUTTON "Cancel" DID_CANCEL, 180, 5, 40, 12, WS_GROUP
}
}
DLGTEMPLATE IDD_GOTO
{
DIALOG "Goto Offset", 0, 0, 0, 130, 80,, FCF_DLGBORDER
| FCF_TITLEBAR
| WS_SAVEBITS
{
LTEXT "Enter ~offset", -1, 5, 28, 60, 8, WS_GROUP |
DT_MNEMONIC
ENTRYFIELD "" IDD_NEWOFFSET, 70, 28, 50, 8, ES_MARGIN
AUTORADIOBUTTON "~Decimal", IDD_DECGOTO, 25, 65, 54, 10, WS_GROUP
AUTORADIOBUTTON "~Hexadecimal", IDD_HEXGOTO, 25, 55, 69, 10
AUTORADIOBUTTON "~Line No. (<0)", IDD_LINEGOTO, 25, 45, 75, 10
DEFPUSHBUTTON "Goto" DID_OK, 15, 10, 40, 12, WS_GROUP
DEFPUSHBUTTON "Cancel" DID_CANCEL, 75, 10, 40, 12, WS_GROUP
}
}
DLGTEMPLATE IDD_SEARCH
{
DIALOG "Find", 0, 0, 0, 200, 77,, FCF_DLGBORDER | FCF_TITLEBAR
{
LTEXT "Enter ~string", -1, 5, 60, 60, 8, WS_GROUP |
DT_MNEMONIC
ENTRYFIELD "" IDD_SRCHSTR, 65, 60, 120, 8, ES_MARGIN
AUTOCHECKBOX "~Case Sensitive", IDD_CHKCASE, 5, 40, 80, 10, WS_GROUP
AUTOCHECKBOX "Search from ~Top",IDD_TOPSEARCH,
100, 40, 90, 10, WS_GROUP
AUTOCHECKBOX "~Hex String",IDD_HEXSTRING,67, 28, 59, 10, WS_GROUP
DEFPUSHBUTTON "Find" DID_OK, 40, 10, 40, 12, WS_GROUP
DEFPUSHBUTTON "Cancel" DID_CANCEL, 120, 10, 40, 12, WS_GROUP
}
}
DLGTEMPLATE IDD_PICKFONT
{
DIALOG "Set Font Size", 0, 0, 0, 96, 70,, FCF_DLGBORDER | FCF_TITLEBAR
{
LISTBOX IDD_FONTS, 10, 24, 80, 45, WS_GROUP
DEFPUSHBUTTON "Set" DID_OK, 5, 5, 40, 12, WS_GROUP
DEFPUSHBUTTON "Cancel" DID_CANCEL, 55, 5, 40, 12, WS_GROUP
}
}
DLGTEMPLATE IDD_SRCHMSG LOADONCALL MOVEABLE DISCARDABLE
BEGIN
DIALOG "", 0, 8, 8, 70, 16, FS_NOBYTEALIGN | FS_DLGBORDER | WS_VISIBLE |
WS_CLIPSIBLINGS | WS_SAVEBITS
BEGIN
CONTROL "Searching...", -1, 6, 5, 55, 8,
WC_STATIC, SS_TEXT | DT_LEFT | DT_TOP | DT_WORDBREAK |
WS_GROUP | WS_VISIBLE
END
END