How to accept Spacebar as a char when in the acquireString function?

How to accept Spacebar as a char when in the acquireString function?

Anonymous
Not applicable
671 Views
2 Replies
Message 1 of 3

How to accept Spacebar as a char when in the acquireString function?

Anonymous
Not applicable

A JIG project,I meet a problem:
How to accept  Spacebar  as a char,not as a return ,  when  I using  the acquireString function?
Like this:

 

setUserInputControls ((AcEdJig::UserInputControls)(m_flag));

 

TCHAR * pStr=new TCHAR[1024];

status = acquireString(pStr);

 

m_strInput.Format(_T("%s"),pStr);

delete[] pStr;

pStr =NULL;

 

I posted my project  file to here, wish someone can help me!
Thank you  very much.

0 Likes
672 Views
2 Replies
Replies (2)
Message 2 of 3

fenton_webb
Autodesk
Autodesk

Did you see the help documentation for AcEdJig::setUserInputControls()

 

 

AcEdJig::kGovernedByOrthoMode 
Sets the "honor ORTHOMODE sysvar" bit of the user input request packet. By default, this bit is not set. Note that the AcEdJig::acquirePoint(AcGePoint3d&, const AcGePoint3d&basePnt) method always honors the ORTHOMODE sysvar, regardless of this bit's state. 
AcEdJig::kNullResponseAccepted 
Sets the "null input acceptable" bit of the user input request packet. This bit is clear by default, and null input is not acceptable. 
AcEdJig::kDontEchoCancelForCtrlC 
Sets the "Don't echo *Cancel* for Ctrl-C's" mode. This is off by default, and *Cancel* is displayed. 
AcEdJig::kDontUpdateLastPoint 
Sets the "Don't update last point" mode. The last point is updated by default. 
AcEdJig::kNoDwgLimitsChecking 
Sets the "Do not check point limits" mode. Drawing limits are checked by default. 
AcEdJig::kNoZeroResponseAccepted 
Sets the "Don't accept zero values" mode. Zero values are accepted by default. This works for the functions acquireDist() and acquireAngle() only. 
AcEdJig::kNoNegativeResponseAccepted 
Sets the "Don't accept negative values" mode. Negative values are accepted by default. This works for the functions acquireDist() and acquireAngle() only. 
AcEdJig::kAccept3dCoordinates 
Sets the "Accept Z coordinate" mode. Input is restricted to 2d input by default. 
AcEdJig::kAcceptMouseUpAsPoint 
Sets the "Use mouse up for points" mode. Mouse-up events do not register as points by default. 
AcEdJig::kAnyBlankTerminatesInput 
Sets the "Any blank terminates input" mode. This mode is off by default. 
AcEdJig::kInitialBlankTerminatesInput 
Sets the "Initial blank terminates input" mode. This mode is off by default. 
AcEdJig::kAcceptOtherInputString 
Sets the "Accept non-keyword string input" mode. This mode is off by default. 
AcEdJig::kUseBasePointElevation 
The elevation of the base point is applied to the point which is being acquired in jigging

 




Fenton Webb
AutoCAD Engineering
Autodesk

0 Likes
Message 3 of 3

Anonymous
Not applicable

Yes ,I saw it. even I trid the  AcEdJig::kAcceptOtherInputString  flag,but I can't get the right result .

0 Likes