⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 autoexec.ssc

📁 PowerBuilder8.0开发分散式应用所帶的例程
💻 SSC
字号:
<!--SCRIPT // {{ SCRIPT()
  var webRoot = site.GetRootDocument();
  if( site.GetDocument( webRoot.location + "/system/schedule.ssc" ) != null ) {
    import schedule.ssc;  // function to schedule documents
    schedule( site );     // schedule the documents
  }
  
  if( site.GetDocument( webRoot.location + "/system/connect.ssc" ) != null ) {
    import connect.ssc;
    LoadConnections();
  }
  
  if( site.GetDocument( webRoot.location + "/system/associat.ssc" ) != null ) {
    import associat.ssc;
    LoadAssociations();
  }
  
  import ( webRoot.location + '/system/utils/strtable.ssc' );
  
  // Install the Add template item
  site.OnEvent('Directory','NewMenu',IntlStr.wizNewTemplMenu,
	    IntlStr.wizNewTemplDesc,'newtempl.ssc');
  site.OnEvent('Directory','Icon',IntlStr.wizNewTemplLabel,
	    IntlStr.wizNewTemplDesc,'newtempl.ssc');
  
  // Install the Add folder item
  
  site.OnEvent('Directory','NewMenu',IntlStr.wizNewFoldMenu,
	    IntlStr.wizNewFoldDesc,'newfold.ssc');
  site.OnEvent('Directory','Icon',IntlStr.wizNewFoldLabel,
	    IntlStr.wizNewFoldDesc,'newfold.ssc');
	    
  // Install the Add script item
  
  site.OnEvent('Directory','NewMenu',IntlStr.wizNewScriptMenu,
	    IntlStr.wizNewScriptDesc,'addscrip.ssc');
  site.OnEvent('Directory','Icon',IntlStr.wizNewScriptLabel,
	    IntlStr.wizNewScriptDesc,'addscrip.ssc');
  
  // Install the Add connection item
  
  site.OnEvent('ConnectionFolder','NewMenu',IntlStr.wizNewConnMenu,
	    IntlStr.wizNewConnDesc,'newconn.ssc');
  site.OnEvent('ConnectionFolder','Icon',IntlStr.wizNewConnLabel,
	    IntlStr.wizNewConnDesc,'newconn.ssc');
  
  // Install the Linked folder item
  
  if( site.type == 'database' ) {
    site.OnEvent('Directory','NewMenu',IntlStr.wizNewLinkMenu,
	    IntlStr.wizNewLinkDesc,'newlink.ssc');
    site.OnEvent('Directory','Icon',IntlStr.wizNewLinkLabel,
	    IntlStr.wizNewLinkDesc,'newlink.ssc');
  }
  
  // Install the Schedule items for scripts and templates
  
  site.OnEvent('Script','ContextMenu',IntlStr.wizSchedMenu,
	    IntlStr.wizSchedDesc,'docsched.ssc');
  site.OnEvent('Text','ContextMenu',IntlStr.wizSchedMenu,
	    IntlStr.wizSchedDesc,'docsched.ssc');
  site.OnEvent('Script','ContextMenu',IntlStr.wizUnschedMenu,
	    IntlStr.wizUnschedDesc,'docunsch.ssc');
  site.OnEvent('Text','ContextMenu',IntlStr.wizUnschedMenu,
	    IntlStr.wizUnschedDesc,'docunsch.ssc');
  
  // Install the script that handles requests for folder documents
  
  site.OnEvent('Directory','Get','','','contview.ssc');
// }}
-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -