Graphic user interface of divclose, Auxiliary Design System for Water Conservancy and hydropower project construction diversion and Interception Scheme

Source: Internet
Author: User

Author: Xiaoyan Linxian QQ: 51817
Water conservancy Software Development Research Group: 39869071 water conservancy and hydropower project construction diversion scheme aided design system official blog: http://www.cnblogs.com/DivClose/
Reprinted. Please retain the copyright information. Thank you!

7.1 graphical user interface ( Gui) Framework 7.1.1 Overview

Graphical User Interface (GuiUser Interface of the Computer Operating Environment displayed in graphical mode.

The Auxiliary Design Software of the construction traffic diversion scheme focuses on assisting users in effectively designing the traffic diversion scheme. To a certain extent, the user's subjective initiative needs to be exerted. Therefore, on the graphic user interface, our research conclusion is: we need to provide a rich and flexible user interface to meet the needs of the design of complex traffic diversion solutions.

7.1.2 Graphical user interface framework Selection

ThroughDockpanel,MagiclibraryAnd so onWinform UIControl usage, comparison,DockpanelIt can better meet the requirements of the Auxiliary Design Software of the diversion and Interception Scheme.

Figure 7.1-1DockpanelUser Interface for testing

Dockpanel suiteIs a very good, very matureWinform UIControls, many open-sourceWinformThe project uses this control, for example:Sharpdevelop. PassDockpanel suiteYou can easily implement ImagesVisual Studio MSWindow positioning, floating,Dock,TabAnd other interface effects, it usesXMLForm to save and restore the form layout. Its open-source complianceThe Code project open license (cpol)Rules that allow users to modify, re-release, and use the source code in commercial software.

7.1.3 Use of dockpanel suite

Dockpanel suiteThe implementation method is as follows:

(1) create a Windows program and reference weifenluo. windowsui. dll;

Imports weifenluo. winformsui

(2) set the startup form formmain;

Formmain. ismdicontainer = true

(3) place a dockpanel control in the formmain form and set:

Dockpanel. Dock = fill

(4) Add a form (formchild) that inherits dockcontent;

(5) Add code to the event:

Formchild childform = new formchild () 'create a form instance

Childform. Show (dockpanel) 'is displayed in the dockpanel

(6) modify the showhint attribute of formchild to implement different dock locations.

Childform. Show (dockpanel, weifenluo. winformsui. dockstate. dockbottom) 'is displayed at the bottom of the dockpanel

DockpanelThe effects implemented in the software system are as follows:

 

Figure 7.1-2DockpanelUser Interface framework

 

Figure 7.1-3 display mode menu

Select the options in the form display menu to change the display status of the form to floating, stopping, option-style document, automatic hiding, and hiding. You can drag and drop the title bar of the form to move the form to other locations on the main interface of the program. The layout is flexible.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.