Changeset 46 for trunk/gui/printer
- Timestamp:
- Sep 18, 2013, 1:10:45 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/printer/manager/PRINTOOL.VRX
r44 r46 119 119 IF cups_pdr == '' THEN DO 120 120 cups_pdr = STREAM( globals.!bootdrv'\OS2\DLL\CUPS.PDR', 'C', 'QUERY EXISTS') 121 IF cups_pdr <> '' THEN CALL VRSetIni ('PM_PORT_DRIVER', 'CUPS', cups_pdr, 'System')121 IF cups_pdr <> '' THEN CALL VRSetIni 'PM_PORT_DRIVER', 'CUPS', cups_pdr, 'System' 122 122 END 123 123 IF cups_pdr <> '' THEN … … 158 158 /*:VRX CN_DEVICES_KeyPress 159 159 */ 160 CN_DEVICES_KeyPress: 160 CN_DEVICES_KeyPress: 161 161 IF VRGet('CN_DEVICES', 'KeyString') == '{Backtab}' THEN 162 162 CALL VRMethod 'TDL_MAIN', 'SetFocus' … … 180 180 /*:VRX CN_PORTS_KeyPress 181 181 */ 182 CN_PORTS_KeyPress: 182 CN_PORTS_KeyPress: 183 183 IF VRGet('CN_PORTS', 'KeyString') == '{Backtab}' THEN 184 184 CALL VRMethod 'TDL_MAIN', 'SetFocus' … … 226 226 /*:VRX CN_PRINTERS_KeyPress 227 227 */ 228 CN_PRINTERS_KeyPress: 228 CN_PRINTERS_KeyPress: 229 229 IF VRGet('CN_PRINTERS', 'KeyString') == '{Backtab}' THEN 230 230 CALL VRMethod 'TDL_MAIN', 'SetFocus' … … 1365 1365 /*:VRX PB_DEVICE_REMOVE_KeyPress 1366 1366 */ 1367 PB_DEVICE_REMOVE_KeyPress: 1367 PB_DEVICE_REMOVE_KeyPress: 1368 1368 IF VRGet('PB_DEVICE_REMOVE', 'KeyString') == '{Tab}' THEN 1369 1369 CALL VRMethod 'TDL_MAIN', 'SetFocus' … … 1479 1479 /*:VRX PB_PORT_EDIT_Click 1480 1480 */ 1481 PB_PORT_EDIT_Click: 1481 PB_PORT_EDIT_Click: 1482 1482 CALL PortProperties 1483 1483 return … … 1485 1485 /*:VRX PB_PORT_EDIT_KeyPress 1486 1486 */ 1487 PB_PORT_EDIT_KeyPress: 1487 PB_PORT_EDIT_KeyPress: 1488 1488 IF VRGet('PB_PORT_EDIT', 'KeyString') == '{Tab}' THEN 1489 1489 CALL VRMethod 'TDL_MAIN', 'SetFocus' … … 1641 1641 /*:VRX PB_PRINTER_EDIT_Click 1642 1642 */ 1643 PB_PRINTER_EDIT_Click: 1643 PB_PRINTER_EDIT_Click: 1644 1644 CALL PrinterProperties 1645 1645 RETURN … … 1647 1647 /*:VRX PB_PRINTER_EDIT_KeyPress 1648 1648 */ 1649 PB_PRINTER_EDIT_KeyPress: 1649 PB_PRINTER_EDIT_KeyPress: 1650 1650 IF VRGet('PB_PRINTER_EDIT', 'KeyString') == '{Tab}' THEN 1651 1651 CALL VRMethod 'TDL_MAIN', 'SetFocus' … … 1773 1773 success = 0 1774 1774 _title = VRMethod('CN_PRINTERS', 'GetFieldData', record, globals.!hcfPrinters.!title ) 1775 _device= VRMethod('CN_PRINTERS', 'GetFieldData', record, globals.!hcfPrinters.!name ) 1775 1776 _queue = VRMethod('CN_PRINTERS', 'GetFieldData', record, globals.!hcfPrinters.!queue ) 1776 1777 _port = VRMethod('CN_PRINTERS', 'GetFieldData', record, globals.!hcfPrinters.!port ) … … 1781 1782 _confirm = VRMessage('WN_MAIN', NLSGetMessage( 201, _title ), NLSGetMessage( 200 ), 'Q', '_btns.', 2, 2 ) 1782 1783 IF _confirm == 1 THEN DO 1783 success = RPUPrinterDelete( _queue ) 1784 IF _queue == '' THEN 1785 success = RPUDeviceDelete( _device ) 1786 ELSE 1787 success = RPUPrinterDelete( _queue ) 1784 1788 CALL RPUPortInfo _port, 'port.' 1785 1789 IF port.!driver == 'CUPS' THEN DO
Note:
See TracChangeset
for help on using the changeset viewer.