Jump to content
Sign in to follow this  
Alexandre Villares

Trouble Calling the Text Tool

Recommended Posts

I can't make CallTool(-200) nor SetTool work (i.e. call the Text Tool) from inside a plug-in tool (as oposed to a plug-in menu command).

It seems to change tools while the mouse is pressed but it becomes worthless as a text tool.

Can anyone please confirm there is something wrong?

[ 06-27-2002: Message edited by: Alexandre B A Villares ]

Share this post


Link to post
Guest

My VERY casual testing confirms this...

Could be, that while in one tool, another tool cannot be called. This may be an effect of non-reentrant limitations of the VS compiler--i.e. that you can't stop one piece of compiled code, execute another, (the text tool), and then pick up executing where you left off in the first piece... but I can't say for sure. : )

Share this post


Link to post

Well I can't get it to work as expected either. I suppose this is why all of our products use dialog boxes to enter text and then just create the text box with something like...

BeginText;'VectorScript created text object'EndText;

I suspect it is a fundamental limitation of VectorScript at this time, but it may be possible to do with the C++ SDK.

It looks to me that CallTool() is not waiting for the text system to finish with the text box and is exiting immediately. I'll put this in as a bug and see if I can get a more official explanation.

Matthew GiampapaNNA Technical Support

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...