On 24 Jan, Lars Clausen wrote:
> 
> I now have a working polyline, though with a few bugs left.  Worst is that
> the display doesn't get updated when adding/removing points via the object
> menu.  I do a ddisplay_flush() on the active display after the callback is
> done, but that isn't enough.  I guess there's a magic function call
> somewhere I haven't found.

 ddisplay_flush() just flushes all scheduled changes for that view.
 You need to register all updated areas first, then flush them. Also,
 you need to flush the diagram, not the display, as several displays
 can view that object. Use this code:
 
 object_add_updates(dia, object);
 diagram_flus(dia);

> I'm not quite happy with the interface, though.  It would be nicer to add
> points like in xfig, where you just click the whole polyline out.  I don't
> see a way to do that here that fits with the rest of the interface.

 No, that's not really possible right now. 

/ Alex


  • Polyline Lars Clausen
    • Alexander Larsson

Reply via email to