YOU CAN CODE!

 

With The Case Of UCanCode.net  Release The Power OF  Visual C++ !   HomeProducts | PurchaseSupport | Downloads  
Download Evaluation
Pricing & Purchase?
E-XD++Visual C++/ MFC Products
Overview
Features Tour 
Electronic Form Solution
Visualization & HMI Solution
Power system HMI Solution
CAD Drawing and Printing Solution

Bar code labeling Solution
Workflow Solution

Coal industry HMI Solution
Instrumentation Gauge Solution

Report Printing Solution
Graphical modeling Solution
GIS mapping solution

Visio graphics solution
Industrial control SCADA &HMI Solution
BPM business process Solution

Industrial monitoring Solution
Flowchart and diagramming Solution
Organization Diagram Solution

Graphic editor Source Code
UML drawing editor Source Code
Map Diagramming Solution

Architectural Graphic Drawing Solution
Request Evaluation
Purchase
VX++ Cross-Platform C/C++
Overview
Download
Purchase
ActiveX COM Products
Overview
Download
Purchase
Technical Support
  General Q & A
Discussion Board
Contact Us

Links

Get Ready to Unleash the Power of UCanCode .NET

E-XD++ Enterprise Edition -- Product Information


32. Auto-Snapping

When creating, editing shapes on canvas, E-XD++ could automatically snap vertexes of shapes, control points, intersection points, etc. It can also snap nearby grid points, borders of canvas or nearby auxiliary lines, etc.

Shown as follows:

These are very important for drawing high-precision shapes (such as shapes in CAD). These features can be customized. If you want to extend current capture method, just overwrite the following functions in class CFODataModel:

// Pick nearest point,this is used for glue mode, when you moving near a shape, it will glue to its
// control handle point or the shapes vector points.
// m_SelectList -- List of shapes for glue.
// ptPick -- nearest glue point,this is a return point.
// ptHit -- HitTest logical point.
// bWithSelection -- if it is true,itself will be used for glue.
virtual BOOL PickNearestPoint(const CFODrawShapeList &m_SelectList,
// Nearest point.
CPoint &ptPick,
// Mouse hit point.
const CPoint &ptHit,BOOL bWithSelection = FALSE);

E-XD++ has a feature of restricting editing area on canvas. When this feature is enabled, all operations (such as drawing, editing, etc) on shapes are restricted inside the canvas, and are not allowed to move to outside of the canvas.

To enable this feature, call the following functions in CFODataModel:

// Set point limit with page, when we move the mouse on the canvas, mostly we want that the mouse cursor
// only showing within the canvas, this method is defined for this case. If bLimit is TRUE, this cursor will
// be limited within the canvas.
void SetPointLimitWithPage(const BOOL &bLimit) { m_bLimitPointWithinPage = bLimit; }

 

 

Copyright ?1998-2023 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.net