Highlighted
Contributor.
Contributor.
343 views

Text Editor API or Other AcuCobol Options

Our software uses a multiline entry field to allow customers to enter notes... similar to Notepad.  They have requested the ability to use color and possible bold or italic fonts to make certain lines of their notes stand out.  I know I can make all the notes a single color, or I can switch to a grid and do specific lines in color.  But, I would like the ability of using a notepad entry (similar to this one) that has options to let them enter colors and change fonts, etc.  Is the only option to use an external API?  and what are some suggestions for that?

0 Likes
2 Replies
Highlighted
Contributor.
Contributor.

Re: Text Editor API or Other AcuCobol Options

I may not have explained well enough what I am trying to do.  Currently our software provides this screen:

Capture.JPG

It's very "notepad" like.  It uses a large Entry-Field and they can basically free form edit.  But, there is not an option for them to color specific words.  Or put certain words in bold or italic.

I know I can create a file and open it in Word or Wordpad.  Not everyone has Word, Wordpad would be more common, but them it is up to them to save it, and I can't control record locking errors of mutliple users trying to access the same file, or make sure they get it saved correctly.

I thought about trying to use the web-browser control and provide options like the ones seen on this entry field on the webpage, but that resulted in scripting errors... errors I do not get if I run a page outside of the Acu-GT runtime.  I found online some information about registry editing to work around those errors... but that creates a whole new level of technical support requirements I am not looking to incur.

Are there any other options for making text like this more editable by the user without doing a grid, which wouldn't be free-form and force them to color by line or cell?

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Text Editor API or Other AcuCobol Options

ACUCOBOL-GT has nothing internal that would allow you to do what you are hoping to do. My only suggestion would be to use some .NET rich edit control (I have no suggestions of which to use). 

Note that if you do this, you may need to expect binary data into the text (which would be the markup, unless the control you choose uses some text-based markup).

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.