
[ First | Prev |
Next | Last
]
About
arrows
XD++
provides enough arrows
resource and control classes for performing common user interface
activities. They are applicable to most applications developed with
XD++. To add any of these arrows to your applications, you only need
to add arrows from the property dialog. The XD++ has already
realized all for you. What's more , you can also add your
self-built arrow sources from XD++ library easily.
All arrows below are built to provide our
customers to get great efficiency . You can use according to your
need .
To see the class used to build the arrow, you
can refer to the class library guide within our products. Also you can click the
links
(windows) to the left to see which
arrows
we have
draw
for you .

If you do not want to use one of the endpoints
provided with XD++ Library, you can create your own. Simply derive a new
object from CFOBaseEndObject and override OnDraw() and
BuildLineEnd().
Refer to the existing endpoints, CFOCrossArrowObject and
CFOEmptyArrowObject.
Create your own arrow class
To create a customized endpoint, you need to
calculate how your geometry appears in relation to the line for both the OnDraw()
and BuildLineEnd() methods. In CFOCrossArrowObject , this is calculated in the
BuildLineEnd() method. t uses the arrow size values to determine how to display
the polygon. The values for the vertices of the polygon are used in both the
region calculations and in the drawing of the endpoint.
Also you can use XD++ Library add-in to
Create your arrow class, below is how:
1.Run the XD++ Library add-in.
Now let's create a document class and a view class.
2.In the base class box, select CFOBaseEndObject
3.Create a new arrow
class, eg:CMyArrowClass
4.Override methods
OnDraw() and
BuildLineEnd()
Visual C++ MFC Example
top
[ First | Prev | Next | Last
]