home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
MLEVIEW.ZIP
/
MLEVIEW.RC
< prev
next >
Wrap
Text File
|
1991-03-31
|
11KB
|
236 lines
/*----------------------------------------*/
/* MLEView.RC -- MLE View resource script */
/*----------------------------------------*/
#include <os2.h>
#include "MLEView.h"
POINTER ID_RESOURCE mleview.ico
MENU ID_RESOURCE {
SUBMENU "~File", IDM_FILE {
MENUITEM "~Open...\tCtrl+o", IDM_OPEN
MENUITEM SEPARATOR
MENUITEM "E~xit\tF3", IDM_EXIT
}
SUBMENU "~Edit", IDM_EDIT {
MENUITEM "~Copy\tCtrl+Ins", IDM_COPY,, MIA_DISABLED
MENUITEM SEPARATOR
MENUITEM "~Find\tCtrl+f", IDM_FIND,, MIA_DISABLED
MENUITEM "Select ~All\tCtrl+a", IDM_SELECTALL,, MIA_DISABLED
}
SUBMENU "~Options", IDM_OPTIONS {
MENUITEM "Set ~font...\tCtrl+f",IDM_SETFONT
MENUITEM "Set ~colors...\tCtrl+c", IDM_SETCOLORS
MENUITEM SEPARATOR
MENUITEM "~Word wrap\tCtrl+w", IDM_WORDWRAP
}
SUBMENU "~Help", IDM_HELP {
MENUITEM "~Help for help...", IDM_HELPFORHELP
MENUITEM "~Extended Help...", SC_HELPEXTENDED,MIS_SYSCOMMAND
MENUITEM "~Keys help...", SC_HELPKEYS ,MIS_SYSCOMMAND
MENUITEM "Help ~index...", SC_HELPINDEX ,MIS_SYSCOMMAND
MENUITEM SEPARATOR
MENUITEM "~About MLEView", IDM_ABOUT
}
}
ACCELTABLE ID_RESOURCE {
VK_F3, IDM_EXIT, VIRTUALKEY
"^A", IDM_SELECTALL
"^C", IDM_SETCOLORS
"^F", IDM_FIND
"^F", IDM_FIND
"^O", IDM_OPEN
"^W", IDM_WORDWRAP
}
DLGTEMPLATE IDD_ABOUT {
DIALOG "", IDD_ABOUT, 56, 24, 200, 88,, FCF_DLGBORDER {
CTEXT "MLEView" -1, 10, 64, 180, 8
ICON ID_RESOURCE -1, 16, 56, 0, 0
CTEXT "Text File View" -1, 10, 40, 180, 8
CTEXT "(c)Copyright W. David Ashley, 1991" -1, 10, 32, 180, 8
DEFPUSHBUTTON "Ok" DID_OK, 80, 8, 40, 16, WS_GROUP
}
}
/*--------------------------------------------------------------------*/
/* Dialog Template Note: */
/* The DLGTEMPLATE id must match the DIALOG id in order for the */
/* Help system subtable definitions to work properly. */
/*--------------------------------------------------------------------*/
DLGTEMPLATE IDD_SETFONT LOADONCALL MOVEABLE DISCARDABLE {
DIALOG "Set Font", IDD_SETFONT, 78, 65, 237, 121, FS_NOBYTEALIGN |
FS_DLGBORDER | WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS,
FCF_SYSMENU | FCF_TITLEBAR {
CONTROL "Font", -1, 8, 100, 20, 8, WC_STATIC,
SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "", IDD_FONT_LB, 5, 58, 116, 46, WC_LISTBOX,
WS_TABSTOP | WS_VISIBLE
CONTROL "Size", -1, 126, 100, 20, 8, WC_STATIC,
SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "", IDD_SIZE_LB, 126, 58, 31, 46, WC_LISTBOX,
WS_TABSTOP | WS_VISIBLE
CONTROL "Typestyle", -1, 161, 58, 70, 55, WC_STATIC,
SS_GROUPBOX | WS_GROUP | WS_VISIBLE
CONTROL "~Bold", IDD_BOLD_CB, 166, 93, 61, 10, WC_BUTTON,
BS_AUTOCHECKBOX | WS_TABSTOP | WS_VISIBLE
CONTROL "~Italic", IDD_ITALIC_CB, 166, 83, 61, 10, WC_BUTTON,
BS_AUTOCHECKBOX | WS_TABSTOP | WS_VISIBLE
CONTROL "~Underscore", IDD_UNDERS_CB, 166, 73, 61, 10, WC_BUTTON,
BS_AUTOCHECKBOX | WS_TABSTOP | WS_VISIBLE
CONTROL "Strike~out", IDD_STRIKE_CB, 166, 63, 60, 10, WC_BUTTON,
BS_AUTOCHECKBOX | WS_TABSTOP | WS_VISIBLE
CONTROL "Font Sample", IDW_SAMPLETEXT, 5, 23, 227, 32, WC_STATIC,
SS_GROUPBOX | WS_VISIBLE
CONTROL "~Set", DID_OK, 5, 5, 50, 13, WC_BUTTON,
BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
CONTROL "~Apply", IDD_APPLY_BT, 65, 5, 50, 13, WC_BUTTON,
BS_PUSHBUTTON | BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
CONTROL "Cancel", DID_CANCEL, 123, 5, 51, 13, WC_BUTTON,
BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
CONTROL "Help", -1, 183, 5, 50, 13, WC_BUTTON,
BS_PUSHBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE |
WS_TABSTOP | BS_HELP
}
}
DLGTEMPLATE IDD_SETCOLORS LOADONCALL MOVEABLE DISCARDABLE {
DIALOG "Set Colors", IDD_SETCOLORS, 78, 65, 237, 121, FS_NOBYTEALIGN |
FS_DLGBORDER | WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS,
FCF_SYSMENU | FCF_TITLEBAR {
CONTROL "Foreground", -1, 8, 100, 60, 8, WC_STATIC,
SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "", IDD_FORG_LB, 5, 58, 106, 46, WC_LISTBOX,
WS_TABSTOP | WS_VISIBLE
CONTROL "Background", -1, 126, 100, 60, 8, WC_STATIC,
SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "", IDD_BAKG_LB, 125, 58, 106, 46, WC_LISTBOX,
WS_TABSTOP | WS_VISIBLE
CONTROL "Color Sample", IDW_COLORTEXT, 5, 23, 227, 32, WC_STATIC,
SS_GROUPBOX | WS_VISIBLE
CONTROL "~Set", DID_OK, 5, 5, 50, 13, WC_BUTTON,
BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
CONTROL "~Apply", IDD_APPLYC_BT, 65, 5, 50, 13, WC_BUTTON,
BS_PUSHBUTTON | BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
CONTROL "Cancel", DID_CANCEL, 123, 5, 51, 13, WC_BUTTON,
BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
CONTROL "Help", -1, 183, 5, 50, 13, WC_BUTTON,
BS_PUSHBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE |
WS_TABSTOP | BS_HELP
}
}
DLGTEMPLATE IDD_FIND LOADONCALL MOVEABLE DISCARDABLE {
DIALOG "Find", IDD_FIND, 160, 74, 206, 69,
FS_NOBYTEALIGN | FS_DLGBORDER | WS_VISIBLE |
WS_CLIPSIBLINGS | WS_SAVEBITS, FCF_SYSMENU | FCF_TITLEBAR {
CONTROL "Find:", -1, 10, 45, 21, 8, WC_STATIC,
SS_TEXT | DT_LEFT | DT_TOP | WS_GROUP | WS_VISIBLE
CONTROL "", IDD_FINDENTRY, 39, 45, 155, 8, WC_ENTRYFIELD,
ES_LEFT | ES_AUTOSCROLL | ES_MARGIN | WS_TABSTOP |
WS_VISIBLE
CONTROL "Case ~sensitive", IDD_CASESEN, 33, 25, 80, 10, WC_BUTTON,
BS_CHECKBOX | WS_TABSTOP | WS_VISIBLE
CONTROL "~Wrap", IDD_FINDWRAP, 134, 25, 36, 10, WC_BUTTON,
BS_CHECKBOX | WS_TABSTOP | WS_VISIBLE
CONTROL "~Find", DID_OK, 10, 5, 40, 13, WC_BUTTON,
BS_PUSHBUTTON | BS_DEFAULT | WS_TABSTOP | WS_VISIBLE
CONTROL "Cancel", DID_CANCEL, 82, 5, 40, 13, WC_BUTTON,
BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE
CONTROL "Help", -1, 154, 5, 40, 13, WC_BUTTON,
BS_PUSHBUTTON | BS_NOPOINTERFOCUS | WS_VISIBLE |
WS_TABSTOP | BS_HELP
}
}
/******************************************************************/
/* Help Sub Table Definitions */
/* */
/* The help subtable is defined including the id for each item */
/* for which help is available, and the id to the corresponding */
/* help panel. The id's for the locations in the program are */
/* defined in the MLEView.H file, and the id's for the help panels*/
/* are defined in the MLEView.IPF file */
/******************************************************************/
HELPSUBTABLE IDST_VIEW
SUBITEMSIZE 2 {
HELPSUBITEM ID_RESOURCE, 1
HELPSUBITEM IDM_FILE, 11
HELPSUBITEM IDM_OPEN, 12
HELPSUBITEM IDM_EXIT, 13
HELPSUBITEM IDM_EDIT, 14
HELPSUBITEM IDM_COPY, 15
HELPSUBITEM IDM_FIND, 16
HELPSUBITEM IDM_SELECTALL, 17
HELPSUBITEM IDM_OPTIONS, 18
HELPSUBITEM IDM_SETFONT, 19
HELPSUBITEM IDM_SETCOLORS, 20
HELPSUBITEM IDM_WORDWRAP, 21
HELPSUBITEM IDM_HELP, 22
HELPSUBITEM IDM_HELPFORHELP, 23
HELPSUBITEM SC_HELPEXTENDED, 24
HELPSUBITEM SC_HELPKEYS, 25
HELPSUBITEM SC_HELPINDEX, 26
HELPSUBITEM IDM_ABOUT, 27
}
HELPSUBTABLE IDST_FIND
SUBITEMSIZE 2 {
HELPSUBITEM IDD_FINDENTRY, 35
HELPSUBITEM IDD_CASESEN, 36
HELPSUBITEM IDD_FINDWRAP, 37
HELPSUBITEM DID_OK, 38
HELPSUBITEM DID_CANCEL, 39
}
HELPSUBTABLE IDST_SETFONT
SUBITEMSIZE 2 {
HELPSUBITEM IDD_FONT_LB, 41
HELPSUBITEM IDD_SIZE_LB, 42
HELPSUBITEM IDD_BOLD_CB, 43
HELPSUBITEM IDD_ITALIC_CB, 44
HELPSUBITEM IDD_UNDERS_CB, 45
HELPSUBITEM IDD_STRIKE_CB, 46
HELPSUBITEM DID_OK, 47
HELPSUBITEM IDD_APPLY_BT, 48
HELPSUBITEM DID_CANCEL, 49
}
HELPSUBTABLE IDST_SETCOLORS
SUBITEMSIZE 2 {
HELPSUBITEM IDD_FORG_LB, 51
HELPSUBITEM IDD_BAKG_LB, 52
HELPSUBITEM DID_OK, 53
HELPSUBITEM IDD_APPLYC_BT, 54
HELPSUBITEM DID_CANCEL, 55
}
/*****************************************************************/
/* Help Table Definition */
/* */
/* The main help table is defined including the window for which */
/* help will be displayed, the help subtable which references */
/* the help panels and the panel id for the extended help panel */
/*****************************************************************/
/*--------------------------------------------------------------------*/
/* Help Table Note: */
/* The HELPITEM id must match both a DLGTEMPLATE and DIALOG id in */
/* order for the Help system to locate the proper help subtable. */
/*--------------------------------------------------------------------*/
HELPTABLE IDHT_HELPTABLE {
HELPITEM ID_RESOURCE, IDST_VIEW, 1
HELPITEM IDD_FIND, IDST_FIND, 34
HELPITEM IDD_SETFONT, IDST_SETFONT, 40
HELPITEM IDD_SETCOLORS, IDST_SETCOLORS, 50
}