ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cancel out of user input

1 REPLY 1
Reply
Message 1 of 2
ebts
348 Views, 1 Reply

Cancel out of user input

I'm trying to cancel out of a user input request (acedGetPoint).

I've created an AcEdInputPointMonitor object before the user request is called, and from within AcEdInputPointMonitor::monitorInputPoint() I tried calling sendModelessInterrupt, but it doesn't appear to work (the command is registered with ACRX_CMD_INTERRUPTIBLE).

I found a sample program that uses sendModelessInterrupt (polysamp), but it doesn't appear that it's being used properly. It's called after the user enters their input, which defeats the purpose. You can remove the call without any discernable change in program execution.

Is this possible, or is there another way to do this?
1 REPLY 1
Message 2 of 2
ebts
in reply to: ebts

Nevermind, found an undocumented command that works (acedPostCommand(_T("CANCELCMD"))).

http://through-the-interface.typepad.com/through_the_interface/2006/08/cancelling_an_a.html

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost