Combination construction of Tangram and software

Source: Internet
Author: User
Tags html page object model visual studio
Tangram and software combination structure        Tangram is Chinese "tangram" English counterpart, probably foreigners think "Tangram" is the wisdom of the Tang Dynasty game, and the overseas Tang Dynasty symbolizes China. "Tangram" shows a clear and simple tectonic thinking, based on 7 elements, to create what you can create. When the earliest development of Tangram, this system to take a name, a lot of brains, good ideas must have a matching name. Tangram's idea is to give a software system a sufficiently large "base" that allows you to conform to the rules based on this "base". The combination of software features is a very interesting problem, first you must provide the basis of the composition structure, and then you have to develop the rules of combinatorial construction, then you have to give the composition of the member elements of the scheduling, interaction between the program.        HTML model is a very interesting example, by providing a set of controls, you can construct colorful pages, the earliest I was through the extension interface to drive HTML to implement the HTML model and MFC, ATL and other frameworks, the typical approach is to design a IDispatch object Iextdisp, this object can access your object model, and then find ways to bind this object with the HTML model, MSHTML library provides this mechanism. By doing this, you can call your object instruction system in your HTML page, and a typical example is visual Studio. NET Code Wizard (Wizard) implementation. Although HTML directives can be extended, but not a good choice, I end up with HTML as a member of a larger "base", because HTML is not expressive enough because these things are not programs or programs. Early use of Delphi, vcl a class of frame objects to leave me a good impression, from the form of a CFrameWnd and Delphi frame is very similar, but not. In general, the Delphi object is compiled before, that is, (most) Delphi and other system objects to be used after compiling, so the choice of Delphi for the Tangram main structure of the feasibility is excluded (in fact, Delphi is as feasible, Because Delphi supports Rtti). When constructing Tangram, it is thought to support the Delphi frame object (now implemented Tangram system can support DELPHI/BCB ActiveForm). The final selection of MFC as the underlying foundation of Tangram is because MFC better supports RTTI (Run-time class information), and MFC has the SpiritLive storage mechanism (MFC's storage mechanism is simple but powerful!) )。        let's look at a more complex frame form: (A composite frame window) The form above is composed of a. NET control, two UserForm, and an MFC View synthesis, frame frame is composed of two splitter and an Excel-style tabwnd. The combination of software means that the frame frame is completed first, and then the above object (A. NET control, two UserForm, and an MFC View) is "installed", and there may be many architectures, and if a program does not have a built-in design engine, the programmer will work hard, User's customization ability is also greatly limited, Tangram's design goal is to ensure that all this can be "visualized" to complete! And it was done professionally enough. In general, HTML does not meet the requirements of programmers, and programmers can not or difficult to have the flexibility of HTML, in this respect, Tangram gives a compromise solution: with HTML design, editing, with a program interface vision. Traditional programs, because most of the objects being manipulated reside within the program, so the design is greatly limited, Tangram based on providing a broad enough "software object base" to make the design become a reality if MFC View, ActiveX Ctrl/activex Document,. NET control, HTML, Flash and other types of elements become a Super "Tangram" in the atomic component, waiting for you will be a huge, colorful object world, Master Tangram, you control the Microsoft's component world, You will have unlimited connectivity ... (Form object after built-in VBA) (two-time development) (Form design)  

Related Article

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.