The free Tangram version is released: http://www.webaddin.com/down/tangramminictrl.ziptangramfree is an ActiveX Control based on tangramtechnology. We call it the "mini" Tangram Control (TangramMini Ctrl ). TangramMini can only be used for non-profit purposes, that is, developers can only use it for free software development. What problems can TangramMini solve? A flexible software architecture is a problem that developers often face. NET development has the characteristics of human nature, but in the face of a very complex software architecture, the current development tools seem to lack flexibility, at least, software Architecture similar to Eclipse is still a "luxury" for general developers ". TangramMini tries to use the COM /. NET developers provide a flexible software architecture solution. With this control, developers can develop flexible application software based on COM or. NET developers. Taking Visual Basic 6.0 as an example, for most VB Developers today, developing the software shown above is still quite difficult, tangramMini's starting point is to "abstract" the "complexity" embodied in the above software at one time, so that the problem can be solved in a unified way as much as possible. From this point of view, TangramMini is a "Super control", and its internal rules can flourish to serve as a variety of software architecture forms. To make a general analogy, TangramMini is like a "omnipotent" Combination framework. Once a specific framework is formed, developers can place their "original devices" on the constructed architecture based on their ideas. Seven examples are provided to demonstrate how to use TangramMini. Among them, VC6.0 has three examples, VB6.0 has two examples, VB. Net, and C ++/CLI has one example. This control contains the following methods/attributes:
Method: BOOL LoadFile (BSTR strXtmlFile)
Note:
Load local XTML
File.
Parameter: strXtmlFile: XTML
File Name.
Return Value: True
Success, False
Failed.
Method: void setwnd (BSTR strobjname, long hhostwnd)
Note:
Set the specified hhostwnd
The handle locates the specified Tangram
Object node location.
Parameter: strobjname: Tangram
Node object name.
Hhostwnd:
The current valid handle.
Return Value:
None
Method: bool save ()
Note:
Save the current XTML
File.
Parameters:
None
Return Value: True
Saved successfully, false
Failed to save.
Method: bool setcaption (BSTR strobjname, BSTR strcaption)
Note:
Set the Tangram
The title of the Node object.
Parameter: strObjName: Tangram
Node object name.
Return Value: True
Set successfully, False
Setting failed.
Method: BOOL SetActive (BSTR strObjName)
Note:
Activate Tangram with the specified name
Node object,
Tangram
Node object front-end display.
Parameter: strObjName: Tangram
Node object name.
Return Value: True
Success, False
Failed.
Method: bool setmdiclient (BSTR strobjname, long nmdihandle, long nmdistyle)
Note:
Tangram
Set the Node object to MDI.
Customer zone.
Parameter: strobjname: Tangram
Node object name.
Nmdihandle: MDI
Customer zone handle,
0
The time controller automatically matches the MDI
Customer zone.
Nmdistyle:
Specify MDI
Customer zone style,
The value is-, 0, 3.
One.
Return Value: True
Set successfully, false
Setting failed.Based on the XML technology, TangramMini provides several XML Description files. More UI descriptions are published on the official website of Tangram. One of the most flexible aspects of TangramMini is to allow users to freely organize component objects they are interested in. For example, if you have 20 Form objects, tangramMini makes the 20 forms very compact, orderly, and reasonable, just as convenient as organizing your bookshelves. For various development environments based on the Microsoft platform, TangramMini should provide the same working method as much as possible. If you plan to develop a platform-based software framework, TangramMini is a good choice. TangramMini. dll is only 596 k and is a lightweight, green engine-Oriented Software Framework control. (Using TangramMini under VC6) (using TangramMini under. NET) We will announce as soon as possible, now interested friends can contact me via msn: sunhuizlz@hotmail.com or mail: sunhuizlz@yeah.net.