Issues with the TTMSFNCWXHTMLMemo component

We use TMS FNC WX Pack version 1.6.3.1.

  1. If we assign HTML formatted text to TTMSFNCWXHTMLMemo's HTML.Text property, carriage return/newlines are replaced by HTML br tags which we don't want in most cases. Would it be possible to extend this component with a new published boolean property ReplaceWithHTMLLineBreaks which is true by default for backwards compatibility but which we can set to false?
  2. In some scenarios, toolbar buttons which we set to invisible at design time are visible at runtime. We applied a fix which sets the toolbar's OnChanged event handler to nil in BeforeLoadDFMValues and restores/calls the toolbar's OnChanged event handler in AfterLoadDFMValues.
  3. Is there a way to control how an HTML paragraph tag is displayed in the memo, e.g. using CSS? We want the HTML p tags to be preserved but displayed just as an HTML br (newline) or with less vertical space.

Hi,

  1. Does this concern assigning the text at design-time? Because for programmatic assignment you can already achieve this by calling LoadHtmlContent(YourText, False).
  2. We could not reproduce this. Which framework are you using?
  3. Currently this is not supported for native platforms. We'd need to research the options for something like this. For WEB, the contents are actually rendered in the DOM so you can manipulate it with CSS. The "note-editable" class is added to the DIV that contains the HTML content. To modify the P paragraph element, you can simply:
    .note-editable p {
      margin-bottom: 0; /*remove bottom margin*/
    }
    
  1. No, it's ok for us to assign the text at run-time, so calling LoadHtmlContent with the False parameter should solve this issue.
  2. We use TMS Web Core.
  3. We already applied the kind of style you provided. So this issue is also solved.

Hi,

For 2 we applied an improvement. The next version will contain the necessary changes.