Changeset 703 for trunk/guitools/smbmon/smbmon.vrx
- Timestamp:
- Jun 13, 2012, 12:08:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/smbmon/smbmon.vrx
r688 r703 112 112 ok = VRMethod(Container, "GetFieldList", "Fields." ) 113 113 114 do I = 1 to 12 114 do I = 1 to 14 115 R2I = right("0"||I,2) 115 116 if I <= fields.0 then do 116 /* say "Columns_"|| right("0"||I,2)' 'VRMethod(Container, "GetFieldAttr", fields.I, "Title" ) */117 ok = VRset("Columns_"|| right("0"||I,2), "Visible", 1)118 ok = VRset("Columns_"|| right("0"||I,2), "Caption", VRMethod(Container, "GetFieldAttr", fields.I, "Title" ))119 ok = VRset("Columns_"|| right("0"||I,2), "Checked", VRMethod(Container, "GetFieldAttr", fields.I, "Visible" ))120 ok = VRset("Columns_"|| right("0"||I,2), "Userdata", Container'|'fields.I'|'VRMethod(Container, "GetFieldAttr", fields.I, "Visible" ))121 end 122 else ok = VRset("Columns_"|| right("0"||I,2), "Visible", 0)117 /* say "Columns_"||R2I' 'VRMethod(Container, "GetFieldAttr", fields.I, "Title" ) */ 118 ok = VRset("Columns_"||R2I, "Visible", 1) 119 ok = VRset("Columns_"||R2I, "Caption", VRMethod(Container, "GetFieldAttr", fields.I, "Title" )) 120 ok = VRset("Columns_"||R2I, "Checked", VRMethod(Container, "GetFieldAttr", fields.I, "Visible" )) 121 ok = VRset("Columns_"||R2I, "Userdata", Container'|'fields.I'|'VRMethod(Container, "GetFieldAttr", fields.I, "Visible" )) 122 end 123 else ok = VRset("Columns_"||R2I, "Visible", 0) 123 124 end 124 125 ok = VRMethod( "Columns", "Popup", , , "", "" ) … … 1229 1230 if DRH <> "" then DaemonName = VRMethod("CN_Daemons", "GetRecordAttr", DRH, "Caption") 1230 1231 select 1231 when Words(DaemonName) = 3 then do 1232 when Words(DaemonName) = 3 then do /* a child process with PID in name */ 1232 1233 DaemonName = word(DaemonName,2) 1233 1234 ok = VRset("ContextMenu_Daemons_Sep1","Visible", 1 ) 1235 ok = VRSet("ContextMenu_Daemons_KillPID", "Caption", NLVGetMessage( 38, DaemonName)) 1236 ok = VRset("ContextMenu_Daemons_KillPID", "Visible", 1 ) 1237 ok = VRset("ContextMenu_Daemons_Start", "Visible", 0 ) 1238 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 1 ) 1239 ok = VRset("ContextMenu_Daemons_Sep1", "Visible", 1 ) 1234 1240 end 1235 when Words(DaemonName) = 1 then do 1241 when Words(DaemonName) = 1 then do /* on smbd.exe or nmbd.exe root processes */ 1236 1242 parse var DaemonName DaemonName'.exe' 1237 1243 if strip(VRMethod("CN_Daemons", "GetFieldData", DRH, DPidsFH)) <> "" then do … … 1244 1250 ok = VRSet("ContextMenu_Daemons_Start", "Caption", NLVGetMessage( 36, DaemonName)) 1245 1251 ok = VRset("ContextMenu_Daemons_Start", "Visible", 1 ) 1252 ok = VRset("ContextMenu_Daemons_KillPID","Visible", 0 ) 1246 1253 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 0 ) 1247 1254 ok = VRset("ContextMenu_Daemons_Sep1", "Visible", 1 ) … … 1395 1402 return 1396 1403 1404 /*:VRX Columns_13_Click 1405 */ 1406 Columns_13_Click: 1407 call _ColumnShow 1408 return 1409 1410 /*:VRX Columns_14_Click 1411 */ 1412 Columns_14_Click: 1413 call _ColumnShow 1414 return 1415 1397 1416 /*:VRX ContextMenu_Daemons_Details_Click 1398 1417 */ … … 1402 1421 ok = VRset("ContextMenu_Daemons_Details","Enabled",0) 1403 1422 ok = VRSet("TM_refresh","Enabled", 1) 1423 return 1424 1425 /*:VRX ContextMenu_Daemons_KillPID_Click 1426 */ 1427 ContextMenu_Daemons_KillPID_Click: 1428 Msg.Text = NLVGetMessage(39, DaemonName) 1429 Msg.Type = 'Q' 1430 if _MsgYesNo() = 1 then do 1431 say 'kill -9 'DaemonName 1432 address cmd 'kill -9 'DaemonName 1433 end 1434 ok = VRSet("TM_refresh","Enabled", 1) 1435 call PB_PAUSEDISPLAY_Click 1404 1436 return 1405 1437 … … 1435 1467 end 1436 1468 ok = VRSet("TM_refresh","Enabled", 1) 1469 call PB_PAUSEDISPLAY_Click 1437 1470 return 1438 1471 … … 1453 1486 end 1454 1487 ok = VRSet("TM_refresh","Enabled", 1) 1488 call PB_PAUSEDISPLAY_Click 1455 1489 return 1456 1490 … … 1943 1977 end 1944 1978 ok = VRSet("TM_Refresh","Delay", 2000) 1979 if \VRGet("TM_RefreshDaemons","Enabled") then call PB_PAUSEDISPLAY_Click 1945 1980 call VRSet VRWindow(), 'Pointer', '<default>' 1946 1981 return … … 1958 1993 end 1959 1994 ok = VRSet("TM_Refresh","Delay", 1000) 1995 if \VRGet("TM_RefreshDaemons","Enabled") then call PB_PAUSEDISPLAY_Click 1960 1996 call VRSet VRWindow(), 'Pointer', '<default>' 1961 1997 return … … 1991 2027 end 1992 2028 ok = VRSet("TM_Refresh","Delay", 1000) 2029 if \VRGet("TM_RefreshDaemons","Enabled") then call PB_PAUSEDISPLAY_Click 1993 2030 call VRSet VRWindow(), 'Pointer', '<default>' 1994 2031 say "IPB_Start_Click done" … … 2007 2044 end 2008 2045 ok = VRSet("TM_Refresh","Delay", 1000) 2046 if \VRGet("TM_RefreshDaemons","Enabled") then call PB_PAUSEDISPLAY_Click 2009 2047 call VRSet VRWindow(), 'Pointer', '<default>' 2010 2048 say "IPB_Stop_Click done"
Note:
See TracChangeset
for help on using the changeset viewer.