Jump to content
Developer Wiki and Function Reference Links ×

Color of a CHAR in Text Block


rosti

Recommended Posts

GetCharColor() is the call.  http://developer.vectorworks.net/index.php/VS:GetCharColor  It appears to have been added to 2016.  Sometimes calls are available earlier than documented, but it's probably not available as early as 2010.  

 

While you can set the text color for individual characters, the background color is the same for the entire text block, and you can just retrieve the object's attributes.

 

-Josh

Link to comment

Thank you,

 

I did try the edit command of the context menu. It shows the settings in the attributes panel (only for the first character) and there is no way of controlling the caret of a text block programmaticaly (?). 

Another way of thinking was to have a group of text blocks each with their own settings, but that would become to laborious, if even possible.  

 

Maybe setting a part of the string to bold or in another fonttype could might enable to derive some substring handles. 

 

Well I'll leave it to that...

 

Edited by rosti
Link to comment
  • 1 year later...

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.

×
×
  • Create New...