Re: [cc2-dev-l] Cancelling ReqData() midway through
>I am using ReqData() to get the user to type in a file name at theChris,
>command line. So far so good, but I also want the user to be able to
>right-click when prompted for the file name and have my XP command
>respond by bringing up the Open File dialog. This much I can do: I
>defined a function that brings up the dialog, and passed the func-
>tion's address to ReqData() by making it the third parameter of my
Another more stright forward way to do this is to skip the rightclick function and respond to the X_DFLT message that you will get in the Result parameter if the user right clicks. THe way to to it would be:
In the return proc.
// Fall through
// Add your stuff here
The way of posting messages back to FastCAD via the API is not nice, I have had to use this a couple of times when no other way is available.