Ticket #339: focres_pm123.rc

File focres_pm123.rc, 2.4 KB (added by Lewis Rosenthal, 8 years ago)

Example customized FOC template (this one for PM123)

Line 
1DLGTEMPLATE PM123_FILEDLG
2BEGIN
3 DIALOG "File Dialog", PM123_FILEDLG, 0, 0, 275, 185,
4 FS_NOBYTEALIGN | FS_SIZEBORDER | WS_VISIBLE | NOT WS_SAVEBITS,
5 FCF_TITLEBAR | FCF_SYSMENU | FCF_CLOSEBUTTON
6 PRESPARAMS PP_FONTNAMESIZE "8.Helv"
7 BEGIN
8 CONTROL "", FOCID_TOOLBAR, 0, 0, 0, 0, WC_ER_TOOLBAR,
9 WS_VISIBLE | WS_PARENTCLIP
10 CONTROL "~Filename", DID_FILENAME_TXT, 3, 162, 269, 8, WC_STATIC,
11 SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE
12 CONTROL "", DID_FILENAME_ED, 5, 153, 265, 7, WC_ENTRYFIELD,
13 ES_MARGIN | WS_GROUP | WS_TABSTOP | WS_VISIBLE
14 CTLDATA 8, CCHMAXPATH, 0, 0
15 CONTROL "~Type of file", DID_FILTER_TXT, 3, 143, 269, 8, WC_STATIC,
16 SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE
17 CONTROL "", DID_FILTER_CB, 3, 101, 269, 42, WC_COMBOBOX,
18 CBS_DROPDOWNLIST | WS_VISIBLE | WS_GROUP | WS_TABSTOP
19 CONTROL "~Drive", DID_DRIVE_TXT, 0, 0, 0, 0, WC_STATIC,
20 SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC
21 CONTROL "", DID_DRIVE_CB, 0, 0, 0, 0, WC_COMBOBOX,
22 CBS_DROPDOWNLIST
23 CONTROL "~Directory", DID_DIRECTORY_TXT, 3, 124, 103, 8, WC_STATIC,
24 SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE
25 CONTROL "", DID_DIRECTORY_LB, 3, 20, 103, 103, WC_LISTBOX,
26 LS_NOADJUSTPOS | LS_HORZSCROLL | LS_OWNERDRAW | WS_GROUP | WS_TABSTOP | WS_VISIBLE
27 CONTROL "~Files", DID_FILES_TXT, 109, 124, 163, 8, WC_STATIC,
28 SS_TEXT | DT_LEFT | DT_TOP | DT_MNEMONIC | WS_VISIBLE
29 CONTROL "", DID_FILES_LB, 109, 20, 163, 103, WC_LISTBOX,
30 LS_NOADJUSTPOS | LS_HORZSCROLL | WS_VISIBLE | WS_GROUP | WS_TABSTOP
31
32 CONTROL "~Recurse into subdirectories", 500, 110, 6, 120, 9, WC_BUTTON,
33 BS_AUTOCHECKBOX | WS_TABSTOP | WS_GROUP | WS_VISIBLE
34 CONTROL "~Use relative paths", 501, 110, 6, 120, 9, WC_BUTTON,
35 BS_AUTOCHECKBOX | WS_TABSTOP | WS_GROUP | WS_VISIBLE
36
37 CONTROL "OK", DID_OK_PB, 3, 3, 50, 14, WC_BUTTON,
38 WS_VISIBLE | WS_PARENTCLIP | WS_GROUP | WS_TABSTOP | BS_PUSHBUTTON | BS_DEFAULT
39 CONTROL "Cancel", DID_CANCEL_PB, 56, 3, 50, 14, WC_BUTTON,
40 WS_VISIBLE | WS_PARENTCLIP | BS_PUSHBUTTON
41 END
42END