Use Tangram to construct your own software development platform (1)

Source: Internet
Author: User
Use Tangram Build your own software development platform

Tangram URL:Http://www.apptemplate.com/opencn/

Technical Forum: http://www.apptemplate.com/opencn/MsgBoard/default.asp

Production firstTangramMain program windowAfter installing the Tangram Development Kit, open Visual Studio. NET 2003 IDE, select the new project to get the following dialog box: Select Tangram Application with COM &. NET Support Project, enter the project name to produce your first Tangram program. This is an MFC Based application framework. After compilation, run the following program: display the runtime image of a default Tangram program.Customize yourTangramProgramThe structure of a Tangram program depends on its configuration file, which has one in the same directory of the program. config file, with the program name .exe. config ", you can modify this file. In the res subdirectory of the program project, there is a template for this file. If the specified file is not found in the program directory, the program will automatically create the corresponding. config file, which specifies the basic configuration of Tangram, which is equivalent to a local registry. If you are not satisfied with the default Main Window of the program, you can generate a new main window by running the default Tangram program and right-clicking the default main window, A context menu will appear: Select "New Work Space", and a New design interface will pop up: in this design interface, you can freely design your main window, A specific example is as follows: design a split structure, select "CreateSplitter" in the toolbox, and enter the required parameters: Click the Create button. The main window is changed to: select a split, select "Create TabWindow" in the toolbox and enter the required style and parameters. Click "Create". The following dialog box is displayed: select the expected TabWnd type. Then, select "MDIPage ", enter the appropriate title in the toolbox, select add Page: Select "MDI Page", select "Create MDI Window" in the toolbox, and click "Create" to save the Window (close the design Window) to the Directory: C:/Program Files/Tangram/D OcumentServer. appObj/workspace. the specified file is newworkspace.app. you can find the configuration file tangramapp1.exe in the debugdirectory of the program project file. config. Open and edit the file. In the <WorkSpace> TangramApp1.app </WorkSpace> section, replace TangramApp1.app with NewWorkSpace. app, save, restart the program, and you will get the following program: If you want to design the new main window to be default, you can use C: /Program Files/Tangram/DocumentServer. appObj/WorkSpace/NewWorkSpace. app, replace the default project file TangramApp1.app In the res of the program project subdirectory (delete the original TangramApp1.app and change NewWorkSpace. copy the app to the specified res directory and change the name to T. AngramApp1.app) in C:/Program Files/Tangram/DocumentServer. in AppObj/WorkSpace/, delete the WorkSpace file with the same name as your program (TangramApp1.app in this example) and restart your Tangram program to get the expected results. Based on the above design mode, you can design your main window at will.For yourTangramGenerate Document Template:Start your Tangram program and select the New menu to get the dialog box: select the New Document Template item to get the following steps: you can design your Template window, just like designing the main window, save the template to C:/Program Files/Tangram/DocumentServer. appObj/DocTemplate directory. In this way, you can get a new template. You can design any number of templates in C:/Program Files/Tangram/DocumentServer. create a subdirectory in AppObj/DocTemplate to plan your template. Tangram will automatically retrieve C:/Program Files/Tangram/DocumentServer for you. template in AppObj/DocTemplate. There is a property page in the design toolbox: There is a command button "ShowDocPropertyPage", you can specify an icon (16 '16 Bitmap) for each template ), on the property page, you can specify the template title and create control bars that can be dragged and dropped. Once a template is created, you can create your own documents. Each Tangram program supports any number of templates.

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.