Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Coding Something similar to oWrite

  • Something similar to oWrite

    Posted by Ghiara Mimmo on October 26, 2018 at 5:16 pm

    HI to all
    I need a rich-text area like that in javascript, but for traditional development. I saw oWrite that is too much for my needs and it is too expensive for my client.
    There is something similar, I need bold underlines, tabs and to insert some database field in the text not much else
    Thank you

    Ghiara Mimmo replied 3 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Gav

    Member
    November 2, 2018 at 12:35 pm

    Hi Ghiara,
    On a fat client window, the only option I can think of is to use a background text object.
    Your users would have to enter their text in a ‘markup’ form, with tags that you interpret.
    This would give you the ability to:
    – bold
    – underline
    – include fields
    It would not permit ‘tabs’, which really are a Word Processing function and would require oWrite.
    In order to to turn bold on, include ascii(27) character, then ‘00000001#’) in $text.
    In order to to turn underline on, include ascii(27) character, then ‘00000004#’ in $text.
    In order to to turn either off (return to standard text), include ascii(27) character, then ‘00000000#’ in $text.
    In order to include a field, get users to wrap it in square brackets.
    Try setting the $text property of a background text object to the below. Sorry that asc27) doesn’t show in the code I’ve pasted here:

    00000001#This is a bold line00000000#
    This is an 00000004#underlined00000000# word
    This is a #S1 – [#S1] – field

  • Ghiara Mimmo

    Member
    November 12, 2018 at 10:08 am

    Thank’s
    It is a very good idea
    I will work on it
    By

Log in to reply.