Ignore:
Timestamp:
Aug 16, 2013, 3:36:39 PM (12 years ago)
Author:
Alex Taylor
Message:

Refresh printer container when default flag is changed. Minor tweak to directory setup logic when adding a new PM driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/printer/manager/PRINTOOL.VRX

    r42 r43  
    18881888    _queue = VRMethod('CN_PRINTERS', 'GetFieldData', record, globals.!hcfPrinters.!queue )
    18891889    ok = RPUQueueDefault( _queue )
    1890 /*
    1891     IF ok == 1 THEN DO
    1892         CALL VRSet 'MI_PRINTER_DEFAULT', 'Checked', 1
    1893         _flags = VRMethod('CN_PRINTERS', 'GetFieldData', record, globals.!hcfPrinters.!flags )
    1894         IF POS( _flags, 'D') == 0 THEN DO
    1895             _flags = 'D'_flags
    1896             CALL VRMethod 'CN_PRINTERS', 'SetFieldData', record, globals.!hcfPrinters.!flags, _flags
    1897         END
    1898     END
    1899 */
     1890
     1891/*** Would also need to remove 'D' flag from previous default printer.  Simpler
     1892 *** just to call RefreshPrinters (below) instead.
     1893 *
     1894 *  IF ok == 1 THEN DO
     1895 *      CALL VRSet 'MI_PRINTER_DEFAULT', 'Checked', 1
     1896 *      _flags = VRMethod('CN_PRINTERS', 'GetFieldData', record, globals.!hcfPrinters.!flags )
     1897 *      IF POS( _flags, 'D') == 0 THEN DO
     1898 *          _flags = 'D'_flags
     1899 *          CALL VRMethod 'CN_PRINTERS', 'SetFieldData', record, globals.!hcfPrinters.!flags, _flags
     1900 *      END
     1901 *  END
     1902 */
     1903
    19001904    CALL VRMethod 'CN_PRINTERS', 'SetRecordAttr', record, 'Source', 0
     1905    CALL RefreshPrinters
    19011906RETURN ok
    19021907
Note: See TracChangeset for help on using the changeset viewer.