> Kuba,
> 
>> Just to make sure I undestand: when you parametrize the position of
>> something, you are still supposed to be able to move it around via
>> XCF_Move?
> 
> Yes.  The substitute and writeback routines should handle the copying
> of the position information between the element and the parameter
> structure.  You should be able to move around locally.  If you refresh
> without doing a writeback, the refresh will copy the parameters back
> into the element, and you will revert back to the position it was in
> before.  If the error is in your code, not mine, then this is probably
> what you have done:  invoked an extra refresh without writing new
> values back the parameter structures.  But I thought that should have
> been done right after the "move" command was executed.  Did you remove
> the writeback call?

By refresh do you mean the expose event handler? Or, do you mean that
calling the expose event handler at an inopportune moment may break
things?

All I know so far is that the drag modifies the object instance's position, but 
said position
gets promptly overwritten somewhere -- just as you suggest. Presumably
in psubstitute.

So I'll compare where pwriteback is called in your code vs. in my code, if 
that's
what you mean by writeback.

The event system mimics Xlib's only as far as I could tell so far, so it may 
well
be that some events are delivered in a different order than in Xlib and
the code trips on it -- it may not even be an error anywhere in the parameter
handling, just in event handling.


> Just to be clear:  To select a wire and attempt to parameterize its
> position as a whole is probably an undefined procedure and I have no
> idea what the consequences might be.  If you want to parameterize the
> position of a wire, edit it and parameterize the position of a point.

How do you parametrize the position of a point? I presume it could only
be cleanly done with keyboard shortcuts -- after all, when you edit a polygon
mouse motion immediately changes the position of the current point,
so just moving the mouse to the menu or toolbar will disturb it.

Cheers, Kuba
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to