755.shtml

来自「UNIX的东西」· SHTML 代码 · 共 135 行

SHTML
135 行
字号
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>在SCO UNIX Openserver 图形界面下设置用户图标 - fanqiang.com</title>
<style type="text/css">
body,th,input,select,textarea,select,checkbox{font:12pt 宋体}
A:link { text-decoration:underline; color:#E6A306}
A:visited { text-decoration:underline; color:#E6A306}
A:hover { text-decoration:underline; color:#FFFF00}
body {  font-family: "宋体", "serif"; font-size: 12pt}
td {  font-family: "宋体", "serif"; font-size: 12pt}
p  { font-size: 9pt; line-height: 150%}
</style>
</head>
<body text="#ffffff" bgcolor="#000000" background="/images/bline.gif"  topmargin=5 marginheight=5 leftmargin=0 marginwidth=0 onLoad="setTailPosition()">
<center>

<table border="0" width="750"  cellspacing="0" cellpadding="0">
<tr>
  <td height="45"><p align="center"><img src="/images/title.gif" alt="[ 永远的UNIX::UNIX技术资料的宝库 ]"> </td>
  </tr> 
<tr>
<tr>
 <td align=left height="40" valign=bottom align=left><small><a href="/">首页</a> > 系统管理 > <a href=/system/sco/index.shtml>SCO</a> > 正文</small></td>
</tr>
<tr>
  <td width="100%" height="2" colspan="5" bgcolor="#D09F0D"><img src="/images/c.gif" width=1 height=1></td> 
</tr>
</table>

<table width=750 border=0 cellspacing=0 cellpadding=0>
<tr><td valign=top align=center >
<br>
	<table width=90% border=0 cellspacing=0 cellpadding=0 align=center>
	<tr><th class=f24><h1>在SCO UNIX Openserver 图形界面下设置用户图标</h1></th></tr>
	<tr><td height=20 align=center><font color=#999999><small> 本文出自: 作者: 王更生 (2001-07-05 20:10:00)</small></font></td></tr>
	<tr><td ><br>
<script type="text/javascript"><!--
google_ad_client = "pub-0052768304011480";
google_alternate_color = "000000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="5959447789";
google_color_border = "000000";
google_color_bg = "666666";
google_color_link = "FFFFFF";
google_color_url = "FF9900";
google_color_text = "CCCCCC";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>	
	</td></tr>
	<tr><td height=15></td></tr>
	<tr><td class=l17><font id="zoom" class=f14>
<font color=#cccccc>
<!-- 正文begin -->
<!--HTML_BEGIN-->

  <table width="744" border="0" cellspacing="0" cellpadding="0" height="76">
    <tr> 
      <td>
        <p><font face=宋体>  在SCO Openserver 中,除了传统的字符界面外,还提供了图形操作环境,方便了UNIX系统下的管理和操作。而如何在其图形环境下设置用户自己的应用程序图标,还不为一般用户所熟悉,本文给出其详细实现过程。</font></p>
        <p><font face=宋体><strong>一、 使用对象生成器Object Builder</strong></font></p>
        <p><font face=宋体>  在SCO Openserver的图形界面下,用鼠标打开Controls文件夹,双击Object Builder图标,在此画面下可以选择新建一个对象,但更简单的途径是用一个已存在的对象作为模板。桌面上的Unix图标就是一个很好的模板,它用来在桌面上打开一个Shell窗口,因此它适合于作为基于字符应用的程序模板。<br>
            选择Unix图标,并把它拖放到Object Builder 窗口中,此时弹出一个窗口,让用户选择要导入的组件,包括图形和活动(ACTION),确认这两项都选中后按OK。</font></p>
        <p><font face=宋体><strong>二、 选择图标</strong></font></p>
        <p><font face=宋体>   在Object Builder 窗口的图形部分包含了四个可供选择的图标,它们在对象使用的不同状态下显示,分别为:<br>
            Normal:该对象未启动<br>
            Activated:该对象已运行<br>
            以及对应以上两种情况的小图标Small Normal和Small activated。<br>
            可以直接使用这些导入的图形作为用户程序的图标,但一般应另选图标以便区分。方法为:在桌面上选Tools菜单,选ToolSheds,选Desktop_Administration,再选Icons文件夹,此时出现以下三行内容:<br>
            .xdt_dir/bitmaps/xdt_small<br>
            /usr/lib/X11/IXI/XDesktop/bitmaps/ xdt_small<br>
            /usr/lib/X11/IXI/XDesktop/bitmaps/ xdt_c_small<br>
            用鼠标双击第二行,出现可供选择的图标,选定后将其拖到Object Builder窗口中,并确认它是在哪种状态下使用。确定图标后,激活Title窗口,在此输入此对象的标题。</font></p>
        <p><font face=宋体><strong>三、 指定所定义图标的活动</strong></font></p>
        <p><font face=宋体>  接下来要指定当所定义的图标被激活时要运行的程序。包括四种情况:该图标被双击;其它对象被拖动到该图标;以及用鼠标右键进行上述两种操作。<br>
             这里我们用的是Unix对象作为模板,故可以在它的定义基础上做修改。在Activate窗口中查看其程序,可以找到如下一行:<br>
            shell-t''$t2''-n''$t2''<br>
            我们对这一行进行修改,以启动vi为例,改为:<br>
            shell-t''vi''-n''vi''/usr/bin/vi<br>
            关于这一部分的程序设计,可参看SCO OpenServer的联机帮助。<br>
            最后在File菜单里选Save As,把新建的对象保存起来,之后可以把它从所保存的目录拖到桌面上,就可在桌面上直接用鼠标点击了。</font></p>
        <p><font face=宋体><span 
      class=zz>王更生(中国人民保险公司福建省南平市分公司 福建南平353000)</span></font></p>
    </td>
    </tr>
  </table>

<!--HTML_END-->
<br>	
<!-- 正文end -->
<br>
(http://www.fanqiang.com)<br>
</font>
<br>
<font color=#999999><small></small></font>	
<br>

		</td></tr>
	</table>

<br>
</td></tr>
</table>

<table width=750 border=0 cellpadding=0 cellspacing=0>
<tr><td width=620 align=center>

<table width=562 border=0 cellspacing=0 cellpadding=0>
<tr><td width=562>
 	<table width=562 border=0 cellspacing=0 cellpadding=0>
 	<tr><td >
 	 

</td></tr>
<tr><td height=10></td></tr>

</table>
<!--结束:底部-->


<table border=0 width=750>
<tr>
  <td width="100%" height="2" colspan="5" bgcolor="#D09F0D"><img src="/images/c.gif" width=1 height=1></td> 
</tr>
<tr>
    <td width="100%" height="40" colspan="5" valign=top><p align="center"><font color=#ffffff>★&nbsp;&nbsp;樊强制作 欢迎分享&nbsp;&nbsp;★ </font></p></td>
  </tr>
</table>
</center>
</body>
</html>

⌨️ 快捷键说明

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