Re: Object copy.



At 27.08.2011 01:31, Paul Chavent wrote:
On 08/26/2011 10:01 PM, Hans Breuer wrote:
What is the problem you want to solve?

I have a static counter in an init function that i call on the
CreateFunc and CopyFunc. I hoped that this counter can be incremented
for each new object on the sheet.

If your object is only created by the GUI it might work to set a flag in CopyFunc to only really update the counter once when in SelectFunc. The latter is always called after diagram insertion of the object.

But when i copy paste the object, the counter increment of 4.

HTH,
        Hans

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]