Hi,
I'm trying to use GetPoly. As far as I can see the init field in the getPolyArg record should control how it behaves in a re-entrant call. But the routine appears to re-initialise itself regardless of the value of init.
This looks like a bug to me. Am I missing something ?
In my code GetPoly breaks out of its processing when a key that it does not handle internally is pressed (as expected). All I am doing is setting a Boolean flag based on this keypress and then GetPoly gets called again without modifying anything in the getPolyArg record, but it is discarding the already input points and prompting for the 1st point again no matter how many points had already been entered (I have used the debugger to confirm the init field is set to false and npnts is correctly set immediately before the re-entrant call to GetPoly).
It is going to be very hard to write my own 'GetMode' without this proc (not impossible, but I'm close to giving up the idea of seriously using D4D).
I'm trying to use GetPoly. As far as I can see the init field in the getPolyArg record should control how it behaves in a re-entrant call. But the routine appears to re-initialise itself regardless of the value of init.
This looks like a bug to me. Am I missing something ?
In my code GetPoly breaks out of its processing when a key that it does not handle internally is pressed (as expected). All I am doing is setting a Boolean flag based on this keypress and then GetPoly gets called again without modifying anything in the getPolyArg record, but it is discarding the already input points and prompting for the 1st point again no matter how many points had already been entered (I have used the debugger to confirm the init field is set to false and npnts is correctly set immediately before the re-entrant call to GetPoly).
It is going to be very hard to write my own 'GetMode' without this proc (not impossible, but I'm close to giving up the idea of seriously using D4D).
David Henderson
dhSoftware - Add-on Macros for DataCAD
dhSoftware - Add-on Macros for DataCAD