Hello,
I am getting exception when running this setting in Delphi:
SetProperty('Commenting.TypeWriter.Styles['+IntToStr(I)+'].TextFormat.Char.Underline', '1', 0);
is Underline is not supported in TypeWriter?
Underline text in TypeWriter
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
- Tracker Supp-Stefan
- Site Admin
- Posts: 17824
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Underline text in TypeWriter
Hello TatianaS,
I believe that the command should be
You had an extra s in "...Typewriter.Styles..."
Typewriter.Styles is an array of all the available styles - and you want to access a specific one and modify it's properties!
Cheers,
Stefan
I believe that the command should be
Code: Select all
SetProperty('Commenting.TypeWriter.Style['+IntToStr(I)+'].TextFormat.Char.Underline', '1', 0);
Typewriter.Styles is an array of all the available styles - and you want to access a specific one and modify it's properties!
Cheers,
Stefan
Re: Underline text in TypeWriter
Hi, I have tried to run your code:
SetProperty('Commenting.TypeWriter.Style['+IntToStr(I)+'].TextFormat.Char.Underline', '1', 0);
but still got an exception. According to the documentation TypeWriter.Style doesn't exist.
Thanks.
SetProperty('Commenting.TypeWriter.Style['+IntToStr(I)+'].TextFormat.Char.Underline', '1', 0);
but still got an exception. According to the documentation TypeWriter.Style doesn't exist.
Thanks.
-
- User
- Posts: 205
- Joined: Fri May 18, 2012 8:41 pm
Re: Underline text in TypeWriter
Hi TatianaS,
Thank you for your post.
The correct syntax for the underline property of the first style of the array is:
Commenting.Typewriter.Styles[0].TextFormat.Char.Underline
And for enabling/disabling the style you pass 'Yes' or 'No' as the second parameter.
Therefore:
SetProperty('Commenting.Typewriter.Styles['+IntToStr(I)+'].TextFormat.Char.Underline', 'Yes', 0);
Thanks.
Sincerely,
Thank you for your post.
The correct syntax for the underline property of the first style of the array is:
Commenting.Typewriter.Styles[0].TextFormat.Char.Underline
And for enabling/disabling the style you pass 'Yes' or 'No' as the second parameter.
Therefore:
SetProperty('Commenting.Typewriter.Styles['+IntToStr(I)+'].TextFormat.Char.Underline', 'Yes', 0);
Thanks.
Sincerely,
Re: Underline text in TypeWriter
Thank you, that worked!
-
- User
- Posts: 205
- Joined: Fri May 18, 2012 8:41 pm