Changeset 1395 for trunk/dll/printer.c


Ignore:
Timestamp:
Feb 8, 2009, 2:48:16 AM (17 years ago)
Author:
Gregg Young
Message:

Allow user to turn off alert and/or error beeps in settings notebook. Ticket 341 Move repeated strings to PCSZs. Ticket 6 Add *DateFormat functions to format dates based on locale Ticket 28 Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error Ticket 6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/printer.c

    r1226 r1395  
    1414  22 Mar 07 GKY Use QWL_USER
    1515  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
     16  07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook.
    1617
    1718***********************************************************************/
     
    498499          if (atol(s) < 24 || atol(s) > 4096) {
    499500            WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_WIDTH));
    500             DosBeep(50, 100);
     501            if (!fAlertBeepOff)
     502              DosBeep(50, 100);
    501503            break;
    502504          }
     
    508510          if (atol(s) < 24 || atol(s) > 4096) {
    509511            WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_LENGTH));
    510             DosBeep(50, 100);
     512            if (!fAlertBeepOff)
     513              DosBeep(50, 100);
    511514            break;
    512515          }
     
    518521          if (atol(s) < 0 || atol(s) > prnwidth - 1) {
    519522            WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_LMARGIN));
    520             DosBeep(50, 100);
     523            if (!fAlertBeepOff)
     524              DosBeep(50, 100);
    521525            break;
    522526          }
     
    528532          if (atol(s) < 0 || atol(s) > (prnwidth - prnlmargin) - 1) {
    529533            WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_RMARGIN));
    530             DosBeep(50, 100);
     534            if (!fAlertBeepOff)
     535              DosBeep(50, 100);
    531536            break;
    532537          }
     
    539544              atol(s) > prnwidth - ((prnlmargin + prnrmargin) - 1)) {
    540545            WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_TABSPACES));
    541             DosBeep(50, 100);
     546            if (!fAlertBeepOff)
     547              DosBeep(50, 100);
    542548            break;
    543549          }
     
    549555          if (atol(s) < 0 || atol(s) > prnlength - 1) {
    550556            WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_TMARGIN));
    551             DosBeep(50, 100);
     557            if (!fAlertBeepOff)
     558              DosBeep(50, 100);
    552559            break;
    553560          }
     
    559566          if (atol(s) < 0 || atol(s) > (prnlength - prntmargin) - 1) {
    560567            WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_BMARGIN));
    561             DosBeep(50, 100);
     568            if (!fAlertBeepOff)
     569              DosBeep(50, 100);
    562570            break;
    563571          }
     
    570578              atol(s) > ((prnlength - prntmargin) - prnbmargin) - 1) {
    571579            WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_SPACING));
    572             DosBeep(50, 100);
     580            if (!fAlertBeepOff)
     581              DosBeep(50, 100);
    573582            break;
    574583          }
Note: See TracChangeset for help on using the changeset viewer.