candidus Posted October 2, 2018 Report Share Posted October 2, 2018 I was looking for a way to specify text styles programmatically. After some unsuccessful attempts I found an approach that works surprisingly well, using selection and font properties. I wanted to use some HTML-like tags so I wrote a small library to do the work. Also included: A general-purpose 'about' dialog. Enjoy :-) StyledText-LV2010.zip StyledText-LV2010.zip Quote Link to comment
hooovahh Posted October 2, 2018 Report Share Posted October 2, 2018 Contributions to the community are always appreciated thank you. That being said you might want to look into the other alternatives that have seemingly similar feature sets to yours. I've been using LVMark for several years. It isn't HTML but a type of markdown format. Years ago there was another attempt called Formatter which does look like HTML. Quote Link to comment
smithd Posted October 3, 2018 Report Share Posted October 3, 2018 Neither of those seem to have a license associated with them, while candidus' has a defined license Also, not the same, but a neat nearby concept: http://sine.ni.com/nips/cds/view/p/lang/en/nid/216348 Quote Link to comment
The Q Posted October 3, 2018 Report Share Posted October 3, 2018 There is also the RichTextBox QControl that has toolbar support. You can learn more about it here: RichTextBox QControl from the LabVIEW Community Wiki Quote Link to comment
candidus Posted October 3, 2018 Author Report Share Posted October 3, 2018 23 hours ago, hooovahh said: I've been using LVMark for several years. It isn't HTML but a type of markdown format. Years ago there was another attempt called Formatter which does look like HTML. Cool, if I knew that before I probably didn't create my own library. Probably I used the wrong keywords for my search on LAVA. But now that my library exists, what to do with it? Submit it to the CR? Create a GitHub repository? Do both? I'm unsure... Quote Link to comment
hooovahh Posted October 3, 2018 Report Share Posted October 3, 2018 You probably already saw a discussion on Code Sharing, which has no conclusion yet. My opinion is if it is stable and good and you don't expect much changes, submit it to the Code Repository here (package preferred). If this is still in a state of flux and development, a site better equipped with change management like BitBucket or GitHub would probably be better. That being said this is a fine place to start discussions and suggestions, and can be moved to Code In Development at your request. Quote Link to comment
Benoit Posted October 4, 2018 Report Share Posted October 4, 2018 Very interesting. Applying a differ front panel update into it would make it faster to refresh for long string. Benoit Quote Link to comment
candidus Posted October 6, 2018 Author Report Share Posted October 6, 2018 On 4.10.2018 at 3:16 AM, Benoit said: Very interesting. Applying a differ front panel update into it would make it faster to refresh for long string. Benoit Great suggestion! Here you are. StyledText-20181006-LV2010.zip Quote Link to comment
candidus Posted October 10, 2018 Author Report Share Posted October 10, 2018 On 3.10.2018 at 11:35 PM, hooovahh said: You probably already saw a discussion on Code Sharing, which has no conclusion yet. My opinion is if it is stable and good and you don't expect much changes, submit it to the Code Repository here (package preferred). If this is still in a state of flux and development, a site better equipped with change management like BitBucket or GitHub would probably be better. That being said this is a fine place to start discussions and suggestions, and can be moved to Code In Development at your request. I did it: Here is the URL to the GitHub repository: https://github.com/mus-candidus/StyledText Please move this thread to "Code in Development". 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.