/ Forums / Advansys Formativ / Formativ Creator / Toolbar Implementation for Rich Text Box / Reply To: Toolbar Implementation for Rich Text Box

#5611
Support 3
Participant

    You can use the HTMLEditorEx control to update the font, insert image, etc. HTMLEditorEx located in the Formativ “Form Designer” – Additional tab. See our Stationery solution which uses the HTMLEditorEx control, select a Stationery and press the Edit option which will let you to update the stationery.

    See below the sample code to display the Font dialog and update the Html font:

    – Create a From and name it to Maindlg
    – Drop the HTMLEditorEx to the Form and name it to “htmlEditor”
    – Add a button and name it to btnFont.
    – You need to have a html file to edit (“c:temptext.htm”).
    – Add the following source to the applet.

      
    Sub Main(Client, GWEvent)
    
      Maindlg.htmlEditor.EditFile("c:temptext.htm")
      Maindlg.ShowModal
    
    End Sub
    
    
    Sub btnFontClick(Sender)
      Maindlg.heSignature.Fontdialog
    End Sub
    
    

    See below the list of some HTMLEditorEx methods:
    – InsertImage
    – InsertLink
    – InsertHorizontalLine

    Hope this helps.

    Regards,
    Advansys Support