最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(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)遵守國家法律
关岭| 启东市| 昌黎县| 岳阳市| 宁海县| 灵丘县| 德州市| 成都市| 四川省| 姜堰市| 神农架林区| 兴城市| 合山市| 武城县| 玉溪市| 大兴区| 伊通| 定襄县| 周宁县| 西乡县| 武定县| 城固县| 游戏| 青河县| 曲松县| 都兰县| 尚义县| 宁陵县| 穆棱市| 星座| 甘孜县| 灵台县| 同心县| 铜鼓县| 团风县| 英山县| 兰坪| 镇赉县| 都江堰市| 定襄县| 翼城县|