maarten. Posted April 5, 2008 Share Posted April 5, 2008 You can put multiple text styles and colors in one text object while drawing. But we can't do that with VS. Even when you export a drawing with such a text object with more then one style in it to Vectorscript, and let that script run again, the text styles are gone. Quote Link to comment
Dieter @ DWorks Posted April 6, 2008 Share Posted April 6, 2008 You can use SetTextStyle(objectHd :HANDLE; Start, Count, Style :INTEGER); after creating the text object. Look at the VSReference for style numbers. Quote Link to comment
maarten. Posted April 6, 2008 Author Share Posted April 6, 2008 That does the trick indeed! Thanks for the tip . Quote Link to comment
Pi_ Posted June 25, 2015 Share Posted June 25, 2015 if you have the name of a text style then how do you get the text Style ID? Or even better, how can you make a new textstyle in vectorscript? Quote Link to comment
Pi_ Posted June 25, 2015 Share Posted June 25, 2015 I'm sorry, I want to change colors in part of a string and tought this post was about SetTextStyleRef... Quote Link to comment
Recommended Posts
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.