Default Editor field markers

    • Offizieller Beitrag

    Hi,

    How do you you hide the field markers in the Default Editor ?

    WPRichText1.InsertPointAttr.Hidden := TRUE;

    to change the text (default is << and >>) change
    WPRichText1.InsertPointAttr.CodeOpeningText
    WPRichText1.InsertPointAttr.CodeClosingText
    You can also change CodeTextColor

    CodeOpeningText can be a string with place holders
    %N will be the name of the object
    %S the 'source' property
    %Y the style name (only useful for inline <span> and <a> objects)
    %P is the Params string

    The menu item for this does nothing.

    Also how do you open the default editor from Delphi 7?

    In the IDE? Double click on object or right click + select 'Edit' from popup menu. (In the context menu you can also load and save the text and set the page size. When you load a text that text will be stored as is and loaded at runtime. This makes it possible to load a WPReporter template. To reapply the loaded text use WPRichText.RTFText.Apply.)

    Julian Ziersch