Enclosed is code for two dia objects for labeling.
They are the same as the standard text object and
standard line object except both have an extra handle
that can be used to attach the "label" to another
object that has a connection point.  Whenever the
attached object is moved, the line or text label will
move with it. When the label is moved, its position is
changed relative to the object it is attached to. I
use them for arrow and text labels.

It would be nice to have a more generic way of
grouping or attaching two objects (the builtin group
is limited), but I couldn't think of an easy way to do
it with the given object interface.

I did this under windows (thanks to Hans). The dll is
attached, so windows users won't have to compile. For
unix, the code should work, but you'll need makefiles,
etc.

Marc

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

dia_label_objects.zip

Reply via email to