Ignore:
Timestamp:
Jan 6, 2010, 3:01:57 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: EVFSGUI basics for printer support

Location:
branches/guitools-2.0/evfsgui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/guitools-2.0/evfsgui/changes

    r350 r361  
    33- Debug on/off option is badly implemented (rework required)
    44- Create Icon. stem in order to ease maintainance of icons
     5
     6Version 2.0.0 (Refresh)
     7- Changed: Rewrite routines to find .msg and .hlp files
     8- Fixed: Set size of throbber object according to screen dimensions
    59
    610Version 2.0 GA
  • branches/guitools-2.0/evfsgui/evfsgui.VRP

    r350 r361  
    88VRXWindow: __VREMainWindow,1,1072,1783,891,3951
    99VRXWindow: __VRESectionListWindow,1,602,11033,11033,3975
    10 VRXWindow: __VREToolsWindow,1,1963,819,6992,1661
     10VRXWindow: __VREToolsWindow,1,1963,819,6992,1665
    1111VRXWindow: __VREWindListWindow,1,470,8528,2650,3150
    1212UserFile: 1
  • branches/guitools-2.0/evfsgui/evfsgui.VRX

    r350 r361  
    284284
    285285    ok = VRSet("Main","Width", 8200)
     286    ok = VRseT("Pict_Throbber","Width",  VRMethod( "Screen", "PixelsToTwips", 32 ))
     287    ok = VRseT("Pict_Throbber","Height", VRMethod( "Screen", "PixelsToTwips", 32 ))
    286288
    287289    /* Setup SmbTree View */
     
    386388        END
    387389        else iterate
     390    end
     391return
     392
     393/*:VRX         _PrinterInfo
     394*/
     395_PrinterInfo:
     396    /* rh = currently selected record handle */
     397    capt = VRMethod("CN_SMBTREE", "GetRecordAttr", rh, "Caption")
     398    parse var Capt p_printer '0D0A'x .
     399    parRH = VRMethod("CN_SMBTREE", "GetRecordAttr", rh, "Parent")
     400    capt = VRMethod("CN_SMBTREE", "GetRecordAttr", Parrh, "Caption")
     401    parse var Capt p_prtsrv '0D0A'x .
     402    p_prtsrv = strip(p_prtsrv)
     403    GparRH = VRMethod("CN_SMBTREE", "GetRecordAttr", Parrh, "Parent")
     404    capt = VRMethod("CN_SMBTREE", "GetRecordAttr", GParrh, "Caption")
     405    parse var Capt p_workgroup '0D0A'x .
     406    DescStr = translate(p_prtsrv'#'p_printer'#'p_workgroup'#')
     407say '"'DescStr'"'
     408    LDescStr = length(DescStr)
     409    ok = SysIni('SYSTEM','PM_SPOOLER_PORT',"All:",'ports')
     410
     411    FoundPort = 0
     412    do I = 1 to ports.0
     413        if left(ports.i,3) = 'SMB' then do
     414            say ports.I
     415            say translate(left(SysIni('SYSTEM','PM_'ports.I,'INITIALIZATION'),LDescStr))
     416            say DescStr
     417            if translate(left(SysIni('SYSTEM','PM_'ports.I,'INITIALIZATION'),LDescStr)) = DescStr then do
     418                OurPort = ports.I
     419                FoundPort = 1
     420                leave
     421            end
     422        end
     423    end
     424
     425    if Foundport then do
     426        ok = SysIni('SYSTEM','PM_SPOOLER_PRINTER',"All:",'printer')
     427
     428        do I = 1 to printer.0
     429            say printer.I
     430            prtsummary = SysINi('SYSTEM','PM_SPOOLER_PRINTER',printer.i)
     431            parse var prtsummary port ';'PrinterDriver';'PrinterQueue';' .
     432            if port = ourPort then do
     433                PrinterName = SysINi('SYSTEM','PM_SPOOLER_PRINTER_DESCR',printer.i)
     434                parse var Printername Printername ';' .
     435                leave
     436            end
     437
     438        end
     439
     440        CALL VRMessage 'Main', PrinterName' ('PrinterQueue') prints to port ' Port' connected to \\'p_workgroup'\'p_prtsrv'\'p_printer, NLVGetMessage( 1 ), 'I'
     441    end
     442    else do
     443        CALL VRMessage 'Main', NLVGetMessage( 62 ), NLVGetMessage( 5 ), 'E'
    388444    end
    389445return
     
    863919    ok = VRset("Menu_Selected_Default_Workgroup","Visible", (Icon = "#62:PMWP.DLL"))
    864920
    865     if Icon = "#65:PMWP.DLL" then do /* Printers not supported at the moment */
     921    if Icon = "#65:PMWP.DLL" then do /* Printer installation not supported at the moment */
     922        /* call _Printerinfo */
    866923        CALL VRMessage 'Main', NLVGetMessage( 62 ), NLVGetMessage( 5 ), 'E'
    867924        return
Note: See TracChangeset for help on using the changeset viewer.