牛牛安装包界面控件使用说明

合集下载

蒙科立网络控件使用说明书doc版

蒙科立网络控件使用说明书doc版

蒙科立网络控件使用说明书本软件只用于个人蒙古文网站开发,如果用于制作课件或在应用程序里使用,请与我公司联系。

一、安装方法1.已经自动安装网络控件的用户可以跳过本节。

2.运行网络平台安装包进行安装。

蒙文字体输入法也将自动安装到您的系统中。

二、控件属性设置Alignment:对齐方式,取值范围为:0,1,20:表示均齐显示文字1:上对齐显示文字2:中对齐显示文字BackColor:背景颜色,可选任一颜色。

ForeColor:前景颜色(文字颜色),可选任一颜色。

Border:设置边框,取值范围为:0,1,2,30:没有边框1:下边框2:四边边框3:黑色加粗四边边框BorderColor:设置边框颜色,颜色可以任意选择。

Font:设置字体,可以任选字体。

也可通过其它方式设置。

FontSize:取值为数字,设置字号。

FontName:设置字体名。

蒙文字体名称有:MenksoftQagan、MenksoftHar-a、MenksoftGarqag、MenksoftScnin、 MenksoftHawang FontItalic:取值范围为0或1,用来设置字符斜体属性。

FontUnderline:取值范围为0或1,用来设置字符下划线属性。

FontBold:取值范围为0或1,用来设置字符粗体属性。

HyperLinkAddress:超链接地址。

LimitBorder:设置边界,取值形式有两种(用数字表示)。

示例:20:表示上下左右边界均是2020、10:表示左右边界为20,上下边界为10 SpaceDistence:设置行间距和段间距,取值形式有两种形式(用数字表示)。

示例:10:表示行间距和段间距都为1010、20:表示行间距为10,段间距为20Text:蒙古文文字编辑处,即控件中显示的内容。

Transparence:取值范围为0或1,设置控件的透明属性。

选择1的时候透明显示。

三、控件方法介绍1、Title功能使用方法:可以为一段文本提供标题<title><in100,50><fontsize=17><textcolor=255,255,255><fontname=Menksoft Hawang></title><title></title>之间表示为标题,<in 100,50>表示上下留多大空间,<font size>表示字体大小,<font name>表示字体名,<textcolor>表示文字颜色,我们使用RGB的格式来设置它。

Realtek Dragon 网络管理软件用户指南说明书

Realtek Dragon 网络管理软件用户指南说明书

Realtek Dragon User Guide1. Using the Dragon SoftwareThank you for purchasing Dragon Software. Realtek Dragon is the best network management product available for online games. The Dragon software is used to control the network bandwidth on Windows 7, Windows8, Windows10 or later platforms.Many users play online game (League of Legend, StarCraft2, Overwatch), watch video streaming (YouTube, Netflix) or listen to online audio (KKBOX, Spotify), and download files through P2P software at the same time. P2P software would affect the network quality seriously and delay the real-time programs. Dragon network management uses advanced feature cooperate with Realtek Gaming Ethernet adapter to deliver more intelligence and more control than traditional network interface. Dragon Bandwidth Control software automatically detects foreground/group traffic and prioritize it as six bandwidth priority levels (the highest priority, high priority, normal priority, low priority, lower priority, and the lowest priority) for optimum performance. User can set traffic limit by visualize network management, manually adjust application priority, or block certain high network traffic applications, to prevent this application interfered with user concerned gaming process.Dragon network management default settings deliver first priority in foreground group processes. The benefits of latency, network traffic, and intelligence will help user to get better user experience and lower down traffic lag issue on the platform.2. Starting the Realtek Dragon SoftwareRealtek Dragon network management software loads at Startup. Once installed, the Realtek Dragon network management icon shows on system tray (the right bottom corner of the screen). Mouse right click on the tray icon to show the application window.Users also can start Dragon network management from the “start” menu by left click the icon in following path“Start->Programs->Realtek->Dragon->Dragon.exe”.The following picture is the Realtek Dragon network management main page. There are three areas in this page, such as Feature Page, Mode Selection, and Application List areas.There are MAIN PAGE, SETTINGS, and INFO tabs in Feature Page area, and there are some modes in Mode Selection area, such as AUTO, GAME, STREAM, BROWSER, WORK, R-rowStorm, and BT modes. In Application List area, there are all running programs which require internet access, in other words, if the program doesn’t need to transmit packets from internet, it will not be displayed on Application List area.As you see the picture shown above, the Dragon default setting in MAIN PAGE is AUTO mode. We will describe the definitions of AUTOmode, GAME mode, STREAM mode, BROWSER mode, and Work mode later.Dragon was a TSR program, user can minimize this window by click “Cross Button”2.1 Feature pagesThe Dragon software provides 3 tabs, “MAIN PAGE”, “SETTINGS”, and “INFO”. When Dragon launches, it will display MAIN PAGE, because more information user concerned is contained in this page.2.1.1MAIN PAGE tab – Mode Selection AreaIn MAIN PAGE tab, there are Mode Selection area and Application List page. In Mode Selection area, there are five modes “AUTO”, “GAME”, “STREAM”, “BROWSER”, and “WORK”. There are also two extra modes “R-rowStorm” and “BT” if the platform has multiple supported adapters. The definitions of each mode is shown below:A.AUTO Mode:Dragon adjusts priority for applicationsaccording to defined criterion automatically.User also can change priority by itself.B.GAME Mode:The process belongs to game such as Leagueof Legend, WarCraft3 Diablo3 etc. will get thehighest bandwidth priority, and the otherprocesses will get lower bandwidth priority.C.STREAM Mode:The process belongs to Stream such as PPSwill get the highest bandwidth priority, andthe other processes will get lower bandwidthpriority.D.BROWSER Mode:The process belongs to browser such asChrome, Edge, Firefox etc. will get the highest bandwidth priority,and the other processes will get lower bandwidth priority.E.WORK Mode:The process belongs to work such as Skype, LINE, Teams etc. willget the highest bandwidth priority, and the other processes willget lower bandwidth priority.F.R-rowStorm:If there are multiple supported adapters and connected, user canbind one process to any adapter by changing its priority.G.BT:If there are multiple supported adapters and connected, choosethis mode will teaming multiple adapters to speedup BTdownload/upload.For Example:As the picture shown above. If user select AUTO mode, the game process, such as League of Legends, will be assigned to the highest priority (Level6). The browser process, such as Chrome, will be assigned to high priority (Level5). The BT process, such as BitComet, will be assigned to the lowest priority (Level1). Other processes are assigned to normal priority (Level4).If user select GAME mode, all gaming processes will be assigned to the highest priority, and other processes will be assigned to lower priority, as the picture shown below.If user select BROWSER mode, all processes that belong to browser will be assigned to the highest priority, and other processes will be assigned to lower priority, as the picture shown below.If user select R-rowStorm mode, process will transmit packets by dedicated adapter according to the priority mapping table in SETTINGS page.If user select BT mode, BT processes will be assigned to the highest priority and Dragon will teaming multiple adapters to speedup BT transmission.2.1.2MAIN PAGE tab – Application List AreaAs the picture shown above, there shows some information of each process in this area, such as GROUP, APPLICATION, BANDWIDTH, PRIORITY, and BLOCK.Because we divide all processes to six different groups, such as Game, Browser, Stream, Work, BT and undefined groups. We use different colors and icons to present these groups, so user can easily understand group information in groupcolumn:1. it means Game group2. it means Browser group3. it means Stream group4. it means Work group5. it means BT groupFor Example, please see the picture show right, chrome belongs to Browser group, League of Legends belongs to Game group, QyClient belongs to Stream group, Skype belongs to Work group, and BitComet belongs to BT group.User can limit the upload or download bandwidth easily by dragging the upload limitation bar or download limitation bar.User can change priority by left click priority button.The priority will change from the following order:Highest->High-> Normal-> Low->Lower->LowestThe priority icons shown below:User can lock or unlock bandwidth by clicking the lock button.User can change the process, which belongs to undefined group, to Game/Stream/Browser/Work group by clicking group button in undefined process row.If user changed undefined group process to Game/Stream/Browser/ Work group, the group color changes to blue/green/pink/yellow, the same as original Game/Stream/Browser/ Work group.Because original undefined process is changed toGame/Stream/Browser/Work group by user, the priority assignment method will be changed by Game/Stream/Browser/Work group policy. For example, if user changes mode to Game mode, this process will be assigned to the highest priority (Level6), as the picture shown below.User also can change back to undefined group by click group button again.2.2.SETTINGS tabIn this page, there have two setting areas, R-rowStorm and Advanced. There must be at least two supported adapters with connected status on PC, otherwise the item “R-rowStorm” will not be displayed on this page.2.2.1SETTINGS tab – R-rowStrom pageIn this page, it shows the network adapters and priority binding status. As the picture shown above, it means the highest priority (Level6), and high priority (Level5) will transmit packets via adapter1 Ethernet. The normal priority (Level4), low priority (Level3), Lower priority (Level2), and the lowest priority (Level1) will transmit packets via adapter2 Ethernet. Adapter3 WiFi is disabled and cannot be selected, because the status is disconnected. If the status changes to connected, it will be changed to enable.As the picture show above, when R-rowStorm feature is enabled, the group column will change to adapter column. It shows which network adapter channel used to connect to internet. For example, League of Legends.exe transmits packets via ethernet network adapter1, chrome.exe transmits packets via ethernet network adapter2, andBitComet.exe transmits packets via ethernet network adapter2, too.2.2.2SETTINGS tab – Advanced pageUser can open Advanced page by clicking Advanced button. In this setting page, user can enable/disable Display Program Icon,enable/disable Website Recognition feature, or reset application list to default by clicking “Reset” button.Application list shows applications with their icons. If user disables Display Program Icon feature, these icons will not be shown.If user enables Website Recognition feature, Dragon will isolate more famous websites to independent items from browser applications, such as Google, Yahoo, Netflix, YouTube, etc. User can set their priority level, adjust bandwidth limit, or block them individually. Please refer to the picture in the next page. tabThere are five sub-pages in INFO page, including System Info, Alarm, Mobile Hotspot, Network Traffic, and About pages. User can get theinformation of system, and the statistical data of network in this page.2.3.1INFO tab – System InfoAs the picture shown above, if there arethree Dragon supported network adapters inthe computer, they will be listed in the left ofthe page. Here shows some information ofthese adapters such as IP address and linkstatus.In this page, user also can get the hardwareinformation like CPU model, RAM, VGA, and theoperating system. Here also shows the networkmaximum bandwidth including upload anddownload.2.3.2INFO tab - AlarmIn Alarm page, Dragon provides Advanced Alarm Message feature to monitor and record network quality.In the above picture, user can set alarm threshold, and set tracing server by themselves. The information will show on E.K.G diagram.1.It is immediate ping latency.2.It is average ping latency.3.It is ping lost percentage information.If user enable this feature, it will monitor network quality of user’s platform continuously until disable. Dragon will save this information. If user want to check previous network quality, they can click open file dialog to open previous data.2.3.3INFO tab – Mobile HotspotIn Mobile Hotspot page, user can share network through WiFi adapter by choosing an Ethernet adapter. User can input his own SSID and KEY, or use the default values if available. After enabling this function, mobile device can search the SSID and connect to it. When device connected, it will be shown in the Mobile Hotspot status list.The bandwidth usage of Mobile Hotspot function will be shown in the MAIN PAGE, called MobileHotspot process. User can adjust itsbandwidth limit, priority, and block it like other processes.2.3.4INFO tab – Network TrafficIn Network Traffic page, there are statistical data about instant network traffic as below.Or the top5 processes (network download/upload usage).2.3.5INFO tab - AboutIn this page, it shows information of “Version” and “Copyright”. User can update Dragon database by clicking “UPDATE” button.。

Pinnacle 软件中文版操作手册

Pinnacle 软件中文版操作手册

目录第一章P i n n a c l e中文软件的安装 (3)第二章P in n a c le软件的简易流程 (3)1.1运行Pinnacle软件 (3)1.2 Pinnacle内业处理 (3)1.2.1工程项目管理 (3)1.2.2原始数据的输入 (6)1.2.3原始数据属性修改 (9)1.2.4基线处理 (13)1.2.5WGS84无约束平差 (16)1.2.6定义地方坐标系统(此过程仅需做一次) (23)1.2.7在地方坐标系统下做约束平差 (27)1.2.8约束平差 (33)1.2.9定义地方坐标系统(此过程仅需做一次) (38)1.2.10在地方坐标系统下做约束平差 (39)1.2.11约束平差 (46)附录一基线处理和优化 (52)附录二:关于GPS控制网的平差计算 (63)一.概述 (63)二.平差预处理 (64)2.1数据的有效性确认、检查 (64)2.2制网网形测试 (67)2.3环闭合差和重复基线测试 (69)2.4主要基线集构造器………………………….... . 712.5控制点兼容性测试 (72)三.WGS84下的自由网平 (73)四.控制网约束平差 (79)五.控制网图中的误差椭球 (85)第一章Pinnacle中文软件的安装建议Pinnacle软件的安装步骤如下:1.装Pinnacle软件的英文版2.调入大地水准模型文件(注:当地坐标系统可以不需要安装)3.安装Pinnacle软件中文版(注:安装的路径一定与英文版相同)4.安装软件的帮助文件(注:帮助软件仍是英文版,可以根据自己的情况选择是否安装,建议安装目录与英文版相同)第二章Pinnacle软件的简易流程1.1运行Pinnacle软件Pinnacle 软件安装完后,点击开始\程序\Topcon Positioning System\Pinnacle汉化版,运行Pinnacle 程序,也可双击桌面上的Pinnacle图标。

知从科技有限公司木牛基础软件平台产品手册说明书

知从科技有限公司木牛基础软件平台产品手册说明书

知从木牛基础软件OBD产品手册知从®木牛基础软件平台知从木牛基础软件OBD产品手册知从®木牛基础软件平台1功能概述知从木牛基础软件平台( ZC.MuNiu )为汽车电子控制器产品开发,提供完整的基础软件平台解决方案。

该产品参考AUTOSAR、OSEK等国际规范。

有基于AUTOSAR ARTOP架构的上位机配置工具,支持上汽、一汽、吉利、广汽、长安、长城等整车厂通讯、诊断、网络管理规范。

知从木牛基础软件平台,主要包括:操作系统、通讯协议栈(CAN\ LIN)、诊断协议栈(UDS\OBD\J1939)、网络管理(OSEK\AUTOSAR)、标定协议栈(XCP\CCP)、存储协议栈、加密模块(CRYPTO)、复杂驱动等模块,配套知从的Bootloader刷新程序和上位机工具,可以根据不同的客户项目要求进行配置和再开发。

知从科技提供基础软件产品的同时,也提供控制器基础软件功能实现的开发服务。

OBD系统(On-Board Diagnostics System)是一种车辆故障检测和诊断系统,用于监测和报告车辆排放控制系统的故障和性能。

它可以通过使用车载电脑监测车辆在实际使用时排放系统的工作状况,并能监测排放系统的故障,通过点亮故障指示器(MIL)通知车辆驾驶员出现故障,同时存储故障代码识别所监测到的故障。

ISO_15031-5_2016和GB18352.6-2016规定了OBD系统在车辆排放控制方面的具体要求和指导。

2应用领域汽车OBD(On-Board Diagnostics)是车辆上的诊断系统,用于监测和报告车辆排放控制系统的故障和性能。

OBD产品广泛应用于以下领域:发动机管理系统(EMS)变速器控制器(TCU)制动控制器(BCU)电机控制器(MCU)电子驻车系统(EPB)电池管理系统控制器(BMS)…3配置环境Hardware (Chip) Aurix TC387Compilers Supported Tasking V6.3r1Evaluation Hardware TC387QPDebugger (SW) TRACE32 PowerView for TriCore V2020.02 Debugger (HW) PowerDebug PRO Ethernet(劳特巴赫) V3.0 Configuration Tools ZCMuNiu4.4_03ENZST01000101Configuration Environment Win7/Win10 64bitTasking编译选项-Ctc38x --lsl-core=vtc -t -I"D:\ENZST01\Bsw04_387\prj" -Wa-H"sfr/regtc38x.def" -Wa-gAHLs --emit-locals=-equs,-symbols -Wa-Ogs -Wa--error-limit=42--iso=99 --language=-gcc,-volatile,+strings,-kanji --fp-model=3 --switch=auto --align=0 --default-near-size=0 --default-a0-size=0 --default-a1-size=0 -O2 --tradeoff=0 --compact-max-size=200 -g --error-limit=42 --sourceTasking链接选项-Ctc38x --lsl-core=vtc -t -I"D:\ENZST01\Bsw04_387\prj" -Wl-o"${PROJ}.hex":IHEX:4 --hex-format=s "..\0_Code\5_lsl\user.lsl" -Wl-OtxycL -Wl--map-file="${PROJ}.mapxml":XML -Wl-mcrfiklSmNOduQ -Wl--error-limit=42 -g --fp-model=3 --c++=034开发背景AUTOSAR组织成立于2003年,主要由欧洲汽车制造商、部件供应商及其他电子、半导体和软件系统公司联合建立。

金牛考勤软件V使用说明

金牛考勤软件V使用说明

目录软件介绍.....................................................................................一、系统简介 .............................................................................二、系统组成 .............................................................................三、系统安装卸载 .........................................................................软件安装.....................................................................................软件操作.....................................................................................模块一、人员资料............................................................................. 3.0考勤软件说明书1.1、部门设置..........................................................................1.2、人员管理..........................................................................1.3、离职管理..........................................................................1.4、人员统计图表......................................................................模块二、规则设置.............................................................................2.1、考勤规则..........................................................................2.2、计算规则..........................................................................2.3、人员考勤规则......................................................................2.4、部门考勤规则......................................................................模块三、班次设置.............................................................................3.1、班次定义..........................................................................3.2、排班规律..........................................................................3.3、个人排班表建立....................................................................3.4、部门排班表建立....................................................................模块四、报表管理.............................................................................4.1、考勤数据分析......................................................................4.2、考勤原始记录表....................................................................4.3、考勤刷卡记录表....................................................................4.4、考勤日报表........................................................................4.5、考勤月报表........................................................................4.6、员工月出勤表......................................................................模块五、设备管理.............................................................................5.1、设备操作..........................................................................5.2、扩展功能..........................................................................模块六、设备管理.............................................................................6.1、假日登6.2、请假登6.3、加班登记..........................................................................6.4、手工签卡.......................................................................... 模块七、设备管理.............................................................................7.1、系统权限..........................................................................7.2、修改用户密码......................................................................7.3、数据库备份........................................................................7.4、数据库恢复........................................................................7.5、数据库更新........................................................................7.6、数据库压缩........................................................................7.7、数据清理.......................................................................... 附录、常见问题...............................................................................软件介绍一、系统简介现代企业分工愈来愈精细、竞争愈来愈激烈,各企业都想尽办法在管理上要效益,而员工考勤烦琐复杂,企业要投入较多的人力、物力、时间,购买打卡钟、打卡、统计,结果费事费力,还经常出错.员工考勤成了企业发展的烦恼。

LEDPlayer软件使用说明

LEDPlayer软件使用说明

LEDPlayer软件使用说明目录第一章简介 (1)一、概述 (1)二、软件运行环境 (1)第二章安装与卸载 (2)一、软件安装 (2)二、软件卸载 (5)第三章LEDPlayer概述 (6)一、认识LEDPlayer软件界面 (6)二、节目结构 (7)三、菜单和工具条 (8)第四章节目编辑流程 (11)一、设定LED屏幕大小 (11)二、新建节目 (11)三、添加多媒体框 (12)四、添加播放素材 (14)第五章节目的详细制作 (15)一、图片播放 (15)二、视频播放 (16)三、文本播放 (17)四、时钟与计时器 (18)五、天气预报 (19)六、外部视频播放 (20)七、 PowerPoint、Word、Excel 播放 (21)八、 Flash、Gif 文件播放 (22)九、表格、网页、桌面抓屏区域 (22)第六章播放通知和体育比分 (25)一、播放通知 (25)二、体育比分 (26)第七章软件设置 (28)一、启动设置 (28)第八章常见问题解答 (29)第一章简介一、概述LEDPlayer是一款用于LED显示屏控制和播放的专业软件。

该软件采用了先进的技术,功能丰富、性能优越,兼具友好的操作界面,易学易用。

LEDPlayer支持视频、音频、图像、文字、Flash、Gif、抓屏模式等形式的媒体文件的播放;支持Word、Excel、PPT的显示;支持时钟、计时、天气预报的显示;支持外部视频信号(TV、AV、S-Video)的播放。

软件支持多页面多分区的节目编辑,提供了丰富灵活的视频切换功能、分区特效,以及三维特效动画。

该软件搭建了一个能让您充分发挥创意的平台,让显示屏的显示效果得到完美展现。

LEDPlayer支持ZH系列接收卡、发送卡,支持一台PC机控制多个LED显示屏, 支持对LED显示屏的智能参数设置。

LEDPlayer目前支持简体中文、英文三种语言。

二、软件运行环境该软件支持Windows XP\Windows Server 2003\ WIN 7\WIN8等操作系统。

led电子屏软件安装与使用说明

led电子屏软件安装与使用说明

目录软件安装说明: (2)软件使用说明: (3)一、软件设置及基本操作步骤: (3)二、软件功能介绍 (7)三、主要设置示例 (10)1、显示屏属性 (10)2、节目属性 (11)3、字幕属性(单行文字显示) (12)4、文本属性(多行文字显示) (13)5、图片属性 (14)6、动画属性 (16)7、其他属性: (19)光盘包含:软件安装说明:1、双击“利路通动卡软件.exe”,进行安装。

安装后桌面建立一个图标。

2、双击桌面软件图标。

①出现,请安装光盘“NET环境.exe”后启动软件;②软件正常启动后及安装完成软件使用说明:一、软件设置及基本操作步骤:1、打开软件。

界面如下:2、点击菜单栏“文件”,“新建”,写好项目名称后,保存即可。

3、点击菜单栏里“设置”按钮,在下拉的菜单里选择“屏设置”,打开屏参设置对话框,如下图所示:3、在控制卡选项中,选择对应的控制卡。

4、使用串口时请首先设置串口号(串口号在计算机设备管理器中查找),点击通讯检测。

显示屏列表区可增加,便于多屏调试控制卡选择显示屏说明,便于记录显示屏位置单元板色彩选择单元板种类选择单元板数据极性和OE 极性调整 单元板块数设置串口通讯检在硬件连接正常,并且确保硬件没有问题的情况下,会出现“连接成功”,连接不通会出现“连接失败”。

5、使用U盘口,请往下操作。

6、在屏参设置下面选择单元板,设置显示屏的宽、高,此处为单元板的块数(非点数),然后点击“确定”。

7、点击“字幕”或者“文本”“图片”“动画”,添加节目元素。

(字幕为单行显示,文本为多行显示)通过屏显示框下部的按钮对节目元素进行大小,位置的编辑,或手动拉送黄色边框进行编辑。

8、双击绿色的区域,在打开的对话框里输入容,并且对字体、大小、位置等容进行编辑,编辑好关闭该对话框。

9、在主界面下方对显示方式、速度、停留时间等容做调整。

10、使用串口,点击,等待容传送完毕。

如果提示发送超时,请在“屏参设置”界面里,重新“通讯检测”或者重启软件。

牛牛截图控件桌面版调用说明

牛牛截图控件桌面版调用说明

牛牛截图控件桌面版调用说明本说明文档旨在对截图控件的API进行说明,指导调用者顺利的将截图控件集成进第三方产品中,使第三方产品也能拥有完美的牛牛截图功能。

控件有三个接口:InitScreenCaptureW,InitCaptureParamW以及StartScreenCaptureW,具体可以参考调用NiuniuCapturedemo_Window_source.zip。

对于上述三个接口,也可以使用不带W的版本,区别在于传递字符串时不使用Unicode编码,而直接使用Ansi字符串即可: InitScreenCapture,InitCaptureParam以及StartScreenCapture。

接口的具体描述如下:1. 接口初始化接口int InitScreenCaptureW(const wchar_t* szAuth);此接口函数用于初始化截图控件的授权信息,默认的授权码为:"niuniu".2. 参数初始化接口int InitCaptureParamW(int flag, unsigned long flagvalue);此接口函数用于初始化截图各个状态下的界面的显示效果,如果不调用,则以默认值处理。

参数说明:枚举定义如下:typedef enum ExtendFlagTypeEnum{emPensize = 1, //emDrawType, //emTrackColor, //emEditBorderColor, //emTransparent, //emWindowAware,emDetectSubWindowRect,emSetSaveName,emSetMagnifierBkColor, //设置放大镜的背景色,不设置则透明emSetMagnifierLogoText, //设置放大镜上的LOGO字符,可提示快捷键,如:牛牛截图(CTRL + SHIFT + A)emSetWatermarkPictureType=20, //设置水印的类型emSetWatermarkPicturePath, //设置水印的路径emSetWatermarkTextType, //设置水印文字的类型emSetWatermarkTextValue, //设置水印文字emSetMosaicType, //设置马赛克类型,1为矩形,2为画线emSetToolbarText, //设置工具栏上的各按钮的tooltip及显示的文字};a). 水印图片设置参数说明:此处的参数值是一个字符串,以|为分割符,如://nShowType|nMinWidth|nMinHeight|nMaxWidth|nMaxHeight|nShowOffset未授权时,此参数对应的设置将采用默认值,不可修改;默认支持的图片大小为200*200,超过此大小的地方,将仅显示是在200*200范围内的图片。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

牛牛安装包界面控件使用说明
本说明文档旨在对nsNiuniuSkin.dll控件的使用进行说明,指导调用者顺利的将牛捉安装包界面控件控件集成进安装包中,使第三方产品也能拥有完美的安装包的UI体验功能。

官方网址:/
牛牛安装包界面控件是一个可集成于NSIS的插件,采用Duilib开发,在使用时,安装包制作者只需要做如下两件事情:
1. 通过配置Duilib的资源,设计好界面显示的元素
2. 在NSIS的脚本中,通过NSIS脚本调用nsNiuniuSkin.dll的相关接口,集成UI及安装包的业务功能
在控件的资源中,采用的是通过TAB控件来实现不同阶段的安装界面,比如:选择路径、许可协议、安装进度、完成、卸载等,在实际使用中,通过NSIS脚本来设置当前需要显示的TAB页,即可完美的呈现出需要的界面UI了。

在我们的示例中,提供了两份安装的界面如下:
注意,最新版本的控件已经将可用的NSIS及7z的相关文件包含在示例包中,可以通过一键打包批处理脚本进行打包了,具体如下:
1). 将要打包的文件复制到FilesToInstall目录下,可以包含文件及若干层的目录
2). 修改相关项目下的skin目录下的资源文件及xml脚本来配置UI
3). 添加相关(或者在我原来的示例上修改,这样更快)的NSIS脚本文件,并与UI相匹配
4). 指定好相关的ICO、licence等信息
5). 执行build.bat脚本,一键打包,build脚本会做三件事:将FilesToInstall 目录下的文件打包成app.7z;将skin目录下的文件打包成skin.zip;调用nsis 编译程序,编译nsi文件,输出安装包。

以上描述的build脚本为全自动执行,可以轻松集成进您现有的软件发布流程中,实现自动化打包发布。

牛牛安装包界面控件包含的接口较多,以下逐一进行介绍[以下接口调用及参数说明按在NSIS脚本中的调用示例来说明]:
1.接口初始化接口
InitSkinPage
此接口函数用于初始化nsNiuniuSkin.dll控件的配置信息.
调用示例:
nsNiuniuSkin::InitSkinPage "$PLUGINSDIR\" "${INSTALL_LICENCE_FILENAME}"
参数说明:
2.重新设置许可协议的文件名
nsNiuniuSkin::ResetLicenseFile $hInstallDlg "newlicensename.rtf"
设置后,许可协议显示控件将会重新加载许可协议文件,这个比较适合用于多语言版本的不同许可协议加载显示。

3.设置安装包标题
SetWindowTile
此接口函数用于指定安装包的标题。

调用示例:
nsNiuniuSkin::SetWindowTile $hInstallDlg "${PRODUCT_NAME}安装程序"
4.设置当前显示的TAB页
nsNiuniuSkin::ShowPageItem $hInstallDlg "wizardTab" ${INSTALL_PAGE_CONFIG}
5.路径选择相关接口
4.1 通知接口来浏览安装路径
nsNiuniuSkin::SelectInstallDir
Pop $0
通知界面控件来浏览安装路径,并且将路径获取到变量中。

再调用此接口后,应该再调用SetControlAttribute接口来将安装的路径设置到控件界面上。

4.2 通知接口来浏览安装路径扩展接口
nsNiuniuSkin::SelectInstallDirEx $hInstallDlg "请选择安装路径"
Pop $0
此接口是SelectInstallDir的扩展接口,在SelectInstallDir的基础上,支持设置文件选择框的标题。

6.显示界面控件
nsNiuniuSkin::ShowPage 0
当界面绑定事件完成后,通过此接口来调用显示控件,此接口将会阻塞运行。

7.弹出提示框接口
1) 以下代码用于初始化子窗口弹窗,同时返回其句柄:
nsNiuniuSkin::InitSkinSubPage "msgBox.xml" "btnOK" "btnCancel,btnClose"
2) 以下代码用于根据弹窗窗口的句柄设置其UI控件的属性,控制显示变化:
nsNiuniuSkin::SetControlAttribute $hInstallSubDlg "lblTitle" "text" "提示"
3) 以下代码将弹窗显示出来:
nsNiuniuSkin::ShowSkinSubPage 0
参数说明:
8.指定界面上指定控件的属性
nsNiuniuSkin::SetControlAttribute $hInstallDlg "btnClose" "enabled" "false" nsNiuniuSkin::SetControlAttribute $hInstallDlg "lblInstalling" "text" "正在卸载..."
此接口用于指定界面的指定元素的指定属性,比如:是否可用、是否可见、是否选中、文字、背景图等等
参数说明:
注:
可以通过此接口设置所有的通用属性;一般可以利用此接口来设置指定控件的文本、是否可用、是否可见、位置、大小、背景图、文本颜色等;比如可以用于设置复选框是否选中等等。

通用的属性列表项可以参照下图:
设置示例如下:
9.获取控件的通用属性
nsNiuniuSkin::GetControlAttribute $hInstallDlg "editDir" "text"
Pop $2
此接口用于获取界面的指定元素的指定属性,比如:是否可用、是否可见,文本等等
通用的属性列表项可以参照下图:
10. 绑定UI
上控件的相关事件
GetFunctionAddress $0 OnExitDUISetup
nsNiuniuSkin::BindCallBack $hInstallDlg "btnClose" $0
此接口用于绑定一个按钮点击的回调函数或一个RichEdit
控件的文字变化时的回调函数。

注:
1). 当绑定的控件是一个RichEdit 控件时,其中的文本内容变化时就会触发绑定的函数;可以通过绑定路径的控件,同时在绑定的函数中获取路径,做否合法的判断。

2). 为了能够将通过Ctrl+F4关闭窗口,以及通过在任务栏关闭窗口的事件通知到NSIS 中,此处需要绑定一个特殊的名称,这个特殊的名称是:syscommandclose ,如下:
11.结束安装
nsNiuniuSkin::ExitDUISetup
此接口被调用时,将会退出安装进程
12.字符串处理辅助接口
nsNiuniuSkin::StringHelper "c:\test\test\" "\" "" "trimright"; 如果源字符串的最后一个字符是\,则将其去掉
pop $0
nsNiuniuSkin::StringHelper "c:\AAA\dst" "AAA" "bbb" "replace" ;将源码中的AAA替换成bbb
pop $0
nsNiuniuSkin::StringHelper "c:\AAA\dst" "\" "" " getrightbychar " ;将源码中的以\分隔的最后一段返回,此例中返回dst
pop $0
这是一个为了简化在NSIS脚本中的字符串处理而提供的辅助函数,有需要者可以使用。

13.其他信息
具体的NSIS脚本及DUILIB的配置文件可以参看DEMO,有如下几个注意事项:
1). DUILIB资源必需打包成zip压缩包,且名称必需是skin.zip
2). 在NSIS脚本中,安装与卸载界面中按如下方式指定:
此处将插件释放目录指定为duilib资源包及许可协议文件的释放路径。

3). 在实际的安装过程中,为了让进度信息尽可能准确,采用的是7z解压的方式
这就要求在制作安装包之前,需要将要安装的文件打包成一个7z 的压缩包,再在NSIS中指定安装:
在NSIS中,有相关的7z插件来解压,这里需要在线程中调用,以免界面卡住:
4). 目前提供的示例仅包含了常见的与UI界面相关的NSIS脚本;需要进一步的处理特定的注册表写入、文件备份等操作,需要自行另外再写NSIS脚本。

5). 界面的安装过程中的图片支持轮播,并且可以设置间隔时间,在XML中的写法如下:。

相关文档
最新文档