国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊

3.17. 自定義GUI工具條(OLEX2使用手冊)

2021-02-27 21:11 作者:DJ_Tokyo  | 我要投稿

原文如下:


Customise GUI toolbar


You can add your own buttons to the main GUI toolbar there the buttons like EditIns, EditAtom and Text are located. For this purpose first of all locate your configuration directory by typing:


>>shell app.ConfigDir()


This directory may be located in different places depending on your operating system and configuration. By default it is the same as the DataDir() . Then you will need to create a folder 'gui' inside and a file 'toolbar.htm' in the 'gui' folder. Then you can place the following HTML code into that file:


<table border='1'>?

<tr>?

<td><a href='fuse'>Fuse</a></td>?

<td><a href='fmol'>fmol</a></td>?

<td><a href="rota 1 0 0 90 3">X</a></td>?

</tr>


<tr>?

<td><a href='cell'>Cell</a></td>?

<td><a href='basis'>Basis</a></td>?

<td><a href="rota 0 1 0 90 3">Y</a></td>?

</tr>?

</table>


Then you can update the GUI panel by expanding or collapsing any of the items or by typing the following into the Olex2 command line:


>>html.Update


Customising Olex2 Shortcuts and main menu bar


Olex2 keyboard shortcuts and main menu can be easily customised and extended. For this you need to open the application configuration directory as above and create custrom_settings.xld file. This file has two sections – shortcuts and menus:


<shortcuts?

?<shortcut key="Ctrl+Shift+C" macro="exec -o cmd">?

>?

<menus?

? ? <item title="Help;My item" macro="echo getCompilationInfo(full) -c">?

? ? <item title="My menu;Exit" macro="exit" before="Help">?

>


Note that to control your menu position in the menubar, you use the ‘before’ keyword.


譯文如下:


3.17. 自定義GUI工具條


你可以將自己的按鈕添加到包含EditIns、EditAtom和Text等按鈕的主GUI工具欄中。為此,首先通過鍵入以下指令找到配置目錄:


>>shell app.ConfigDir()


此目錄可能位于不同的位置,具體取決于你的操作系統(tǒng)和配置。默認(rèn)情況下,它與DataDir()相同。然后你需要在里面創(chuàng)建一個(gè)包含'toolbar.htm'文件的'gui'文件夾。然后你可以將以下HTML代碼放入到該文件中:


<table border='1'>

<tr>

<td><a href='fuse'>Fuse</a></td>

<td><a href='fmol'>fmol</a></td>

<td><a href="rota 1 0 0 90 3">X</a></td>

</tr>

?

<tr>

<td><a href='cell'>Cell</a></td>

<td><a href='basis'>Basis</a></td>

<td><a href="rota 0 1 0 90 3">Y</a></td>

</tr>

</table>


然后,你可以通過展開或折疊任何項(xiàng)目,或者在Olex2指令行中鍵入以下指令來更新GUI面板:


>>html.Update


3.18.?自定義Olex2快捷鍵和主菜單欄

Olex2鍵盤快捷鍵和主菜單可以輕松自定義和擴(kuò)展。為此,你需要以上述方式打開應(yīng)用程序配置目錄并創(chuàng)建custom_settings.xld文件。該文件有兩部分——shortcuts和menus:


<shortcuts

<shortcutkey="Ctrl+Shift+C" macro="exec -o cmd">

>?

<menus

<itemtitle="Help;My item" macro="echo getCompilationInfo(full)-c">

<itemtitle="My menu;Exit" macro="exit" before="Help">

>?


請(qǐng)注意,要控制菜單欄中的菜單位置,請(qǐng)使用'before'關(guān)鍵詞。


輔助視頻如下:

3.17-自定義GUI工具條

https://www.bilibili.com/video/BV1hi4y1T7WM


公眾號(hào)文章鏈接:

https://mp.weixin.qq.com/s?__biz=MzU0NjkzMTM1MQ==&mid=2247485364&idx=4&sn=50be39e23ef56d3cac3594c31ac60ba5&chksm=fb57504ccc20d95a421da23eea99d6319bb0ca35124415909b4a3acf56d4841a4b93f5df01cb&token=1126004319&lang=zh_CN#rd



3.17. 自定義GUI工具條(OLEX2使用手冊)的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國家法律
苗栗市| 体育| 泌阳县| 皋兰县| 高州市| 本溪| 阳朔县| 新乡县| 定南县| 滨海县| 宁河县| 万山特区| 渑池县| 鸡泽县| 威信县| 霞浦县| 乐东| 古田县| 奎屯市| 新乡市| 通辽市| 若尔盖县| 吉林市| 开阳县| 平和县| 浪卡子县| 常熟市| 雅安市| 遵化市| 佛冈县| 同心县| 七台河市| 新蔡县| 尚志市| 泾川县| 安新县| 龙门县| 霍林郭勒市| 张家界市| 东山县| 新民市|