![]() ![]() |
||
The MATLABDemo sample demonstrates how to use E-XD++ to build a matlab like diagramming application with complex diagram drawing and layout, as below. With matlabdemo, you build models by dragging and dropping blocks from the library browser onto the graphical editor and connecting them with lines that establish mathematical relationships between the blocks. You can arrange the model by using graphical editing functions, such as copy, paste, undo, align, distribute, and resize. This is the first diagramming component that supports link to link line feature.
Steps: 1. Design any symbols with ShapeDesigner. 2. Call the following codes to build your matlab like application. BOOL CMATLABDemoApp::InitInstance() { // E-XD++ Library Add line. AfxOleInit(); AfxEnableControlContainer(); // Standard initialization // If you are not using these features and wish to reduce the size // of your final executable, you should remove from the following // the specific initialization routines you do not need. //E-XD++ Library add lines. FOInit(RUNTIME_CLASS(CNewVisualProxy)); FOEnableXPStyle(TRUE); gfxData.fo_DefaultArrowType = 5; gfxData.fo_DefaultArrowStartWidth = 4; gfxData.fo_DefaultArrowEndWidth = 4; gfxData.fo_DefaultArrowStartLength = 5; gfxData.fo_DefaultArrowEndLength = 5; gfxData.m_nDefCanvasExpand = 0; gfxData.m_strDefFontName = _T("Arial"); gfxData.m_nDefFontSize = 8; gfxData.m_nDefNearestPortDist = 30; gfxData.m_bfoLinkOnLink = TRUE; gfxData.m_strDefToolboxFile = _T("matlab.dat");
|
Copyright ?1998-2007 UCanCode.Net Software, all rights reserved.
Other product and company names herein may be the trademarks of their respective owners.
Please direct your questions or comments to webmaster@ucancode.com