Start a new topic

Applying formatting to contents of notepad

Hi gang,

Is there any way to apply formatting to text being imported into a notepad?  I'd really like to be able to select a monospaced font. Or, for another import, it'd be really useful to be able to underline certain words. I'm already building the notepad string in code, if that helps?

Any thoughts very welcome!

Cheers,
Tom


Hi Nic - thanks for the pointers. Will give that a go!
Tom,

You would have to set the text yourself in the API but it is possible. What we end up doing is using a Windows.Forms.RichTextBox control to properly format the incoming text. Once you figure out the syntax for Rich Text Formatting you simply apply that value to the ENotepadFields.NOTEPAD_fld_Notes field on the notepad.

There are likely some resources available on the internet or you can create a basic winform application with a RichTextBox control and inspect the RichTextBox.Rtf property to figure out the formatting for your needs.
Login or Signup to post a comment