Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to customize the View display Interface by ServerSuperIO

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "ServerSuperIO how to customize the view display interface", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "ServerSuperIO how to customize the view display interface" bar!

13. Custom view display interface development to meet different display requirements 13.1 Overview

If ServerSuperIO is deployed on the server side, then there is no need for view display development on the SSIO view interface, you can do it on the WEB side. If the ServerSuperIO is deployed on the PC or embedded host, and with a live display screen, then it needs to have a real-time display interface and meet the different needs of on-site users. In view of this situation, ServerSuperIO provides a view display interface. After the data is extracted by the device driver, the data can be transmitted to the view interface in real time, which can be displayed immediately, or the data can be cached first and displayed regularly; the data of several device drivers can be displayed in one view, or all device-driven data can be displayed in one view. As shown in the following figure:

13.2 View display interface

The view abstract class GraphicsShow inherits from the IGraphicsShow interface, and the secondary development can inherit the GraphicsShow abstract class. After developing the view interface on ServerSuperIO, you can mount and run it under the secondary development kit (download the secondary development kit). When carrying out the second opening, there are several points that need to be paid special attention to:

ShowGraphics (IWin32Window windows) interface. The windows parameter is the parent form of the current display view. If the parent form has IsMdiContainer=true set, you can set the current display view showForm.MdiParent = (Form) windows.

UpdateDevice (string devid, object obj) real-time data update interface. If the instance of the secondary development view is added to the current service instance, the device driver will update the data through the UpdateDevice interface of the OnDeviceObjectChanged data change event notification view. It is entirely up to the secondary developer to control when the OnDeviceObjectChanged will be triggered.

The OnGraphicsShowClosed view closes the event interface. This event must be triggered when the current view is closed. ServerSuperIO will automatically release resources and destroy the current view instance from the service instance so that it can be displayed normally next time.

The MouseRightContextMenu context menu displays the interface. If you right-click a device view displayed in the current view, you can call this context menu API. The ShowContextMenu function of the device driver IRunDevice API is called, and the context menu can be displayed in this function. This feature is particularly useful because different types of device drivers have different functions, and you can customize the functional features of that type of device through the context menu.

The GraphicsShow API code is defined as follows:

+ View Code

13.3 device driver development and matters needing attention

Pass data information to the view instance through the OnDeviceObjectChanged event. The code is as follows:

+ View Code

two。 The context menu is displayed, and the MouseRightContextMenu of the view interface invokes the device driver's ShowContextMenu interface function. The code is as follows:

+ View Code

13.4 running effect

Thank you for your reading, the above is the content of "ServerSuperIO how to customize the view display interface", after the study of this article, I believe you have a deeper understanding of how to customize the view display interface of ServerSuperIO, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report