Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CASL dialog textbox help

Status
Not open for further replies.

cloudstrife11

Programmer
Nov 14, 2008
5
CA
I am using Attachmate Accessory Manager, Infoconnect Enterprise 8.1, which uses CASL language to build macros.

One use of this system is to document notes on clients…we call them the client’s “Remarks”. The Remarks page in Infoconnect is not very user friendly…it does not include spell check and it does not have wordwrap capabilities. Furthermore, we cannot efficiently cut and paste from MS Word due to the way the Remarks section is laid out. Remarks can be several paragraphs long and can be quite cumbersome to enter into the Remarks section.

I wish to create a dialogbox with a text box that users can C&P their text from MS Word into the text box. This way they can use MS Word’s word processing features, but not having the hassle transferring the text manually into Infoconnect.

Once the user C&P into the text box, the macro will manipulate the text into a format compatible with our Remarks screen, then input the text into the remarks section.

I have attempted to do this with the following:

string MyRemarks
dialogbox 320, 150, 300, 350
ltext 10, 4, 400, 8, "Cut and Paste the text into the box below"
edittext 4, 20, 292, 300, "", MyRemarks, tabstop
pushbutton 4, 330, 40, 15, "OK", tabstop
enddialog

This text box looks big enough to fit several paragraphs of text, however, when I cut and paste text from MS Word into the text box, only the last line of the text appears on the very top of the text box.

It appears that the last dimension, 300, in “edittext 4, 20, 292, 300” only make the text box appear larger, but do not actually make the area you can input text larger. I need to be able to input text on more then just one line of a textbox.

Can anyone help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top