Changeset 1121
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/fm3dll.str
r1120 r1121 101 101 FM/2 mini-command line help 102 102 Type "/OPEN path" to open a new Directory Container.\r\rType "/CLOSE path" to close a Directory Container.\r\rType "/FILTER filter" to filter a Directory Container.\r\rType "/KEEP" or "/NOKEEP" to set the type of cmd window (autoclose or not).\r\rType "/SAVE" or "/NOSAVE" to save (or not) cmd lines between sessions.\r\r[Up arrow] or [down arrow] or [+] button for listbox of previous command lines, then [Delete] to remove one or [Enter] to reuse.\r\rOr type a command to be executed (metastrings like %%a available.)\r\rDouble-click entry field to simulate hitting [Enter].\r\rF5 is the accelerator for this mini-command line. 103 104 103 Some text is missing 104 You need to provide both button text & help. 105 105 8.Helvetica.Bold 106 106 4.System VIO -
trunk/dll/fm3str.h
r1120 r1121 21 21 17 Jul 08 JBS "Renumbered" IDS_SHUTDOWNSTATE because its old numbers was "in use" 22 22 24 Aug 08 GKY Add strings for limited/inadequate drive space checks 23 26 Aug 08 GKY Error strings for require unique ID plus text and help strings for all tools 23 24 24 25 ***********************************************************************/ … … 133 134 #define IDS_FM2CMDHELPHDRTEXT 100 134 135 #define IDS_FM2CMDHELPTEXT 101 136 #define IDS_MISSINGTEXT 102 137 #define IDS_TOOLHELPTEXTBLANK 103 135 138 #define IDS_8HELVBOLDTEXT 104 136 139 #define IDS_4SYSTEMVIOTEXT 105 -
trunk/dll/mainwnd.c
r1107 r1121 66 66 18 Jul 08 SHL Use new Fortify feature to avoid spurious reports 67 67 19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory 68 26 Aug 08 GKY Require unique ID plus text and help strings for all tools save toolbar on button delete 68 69 69 70 ***********************************************************************/ … … 1240 1241 if (id) 1241 1242 PostMsg(WinQueryWindow(hwnd, QW_PARENT), UM_SETUP, 1242 MPFROM2SHORT(id, 0), MPVOID);1243 MPFROM2SHORT(id, 0), MPVOID); 1243 1244 return 0; 1244 1245 … … 2558 2559 if (fToolTitles) 2559 2560 WinShowWindow(WinWindowFromID(hwnd, id + 25000), FALSE); 2560 ResizeTools(hwnd); 2561 ResizeTools(hwnd); 2562 save_tools(NULL); 2561 2563 } 2562 2564 } -
trunk/dll/tools.c
r1119 r1121 20 20 19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory and use BldFullPathName 21 21 24 Aug 08 GKY Warn full drive on save of .DAT & .TLS files; prevent loss of existing file 22 26 Aug 08 GKY Require unique ID plus text and help strings for all tools save toolbar on button delete 22 23 23 24 ***********************************************************************/ … … 705 706 CHAR help[81], text[81], idstr[7]; 706 707 BOOL invisible, dropable, separator, istext, myicon; 707 TOOL *tool; 708 708 TOOL *tool; 709 BOOL BadID = FALSE; 710 711 help[0] = text[0] = NULL; 709 712 WinQueryDlgItemText(hwnd, ADDBTN_HELP, 80, help); 710 713 WinQueryDlgItemText(hwnd, ADDBTN_TEXT, 80, text); … … 733 736 xfree(tool->text, pszSrcFile, __LINE__); 734 737 tool->text = NULL; 735 if (*help) 738 if (*help && *text && help && text) { 736 739 tool->help = xstrdup(help, pszSrcFile, __LINE__); 737 if (*text) 738 tool->text = xstrdup(text, pszSrcFile, __LINE__); 740 tool->text = xstrdup(text, pszSrcFile, __LINE__); 741 } 742 else { 743 saymsg(MB_ENTER, 744 hwnd, 745 GetPString(IDS_MISSINGTEXT), 746 GetPString(IDS_TOOLHELPTEXTBLANK)); 747 WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, ADDBTN_HELP)); 748 break; 749 } 739 750 tool->flags = (((dropable) ? T_DROPABLE : 0) | 740 751 ((invisible) ? T_INVISIBLE : 0) | … … 753 764 tool = toolhead; 754 765 while (tool) { 755 if (tool->id == (USHORT) atoi(idstr)&& tool != tool) {766 if (tool->id == (USHORT) atoi(idstr)) { // && tool != tool) { 756 767 saymsg(MB_ENTER, 757 768 hwnd, … … 759 770 GetPString(IDS_TOOLIDEXISTS)); 760 771 WinSetDlgItemText(hwnd, ADDBTN_ID, NullStr); 761 WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, ADDBTN_ID)); 772 WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, ADDBTN_ID)); 773 BadID =TRUE; 762 774 break; 763 775 } 764 776 tool = tool->next; 765 } 777 } 778 if (BadID) 779 break; 766 780 tool = xmallocz(sizeof(TOOL), pszSrcFile, __LINE__); 767 781 if (tool) {
Note:
See TracChangeset
for help on using the changeset viewer.
