|
I struggled with this several years ago. You're right, CNTFLD has its limitations. If you're thinking of a Windows-centric type text window (think Notepad), forget it for the green screen. If your CNTFLD is 300 chars long, then that's your max. What I managed to do was to design a new display format that basically was one CNTFLD of 18 lines (1440 characters); this happened to be more than enough for my client at the time. Also, there's no word-wrap on the entry window, just character-wrap. There is a word-wrap keyword but that only works for output-only. I know there are OfficeVision APIs that could be used to effect some of what you're looking for, but we all know where OV is headed. If you really want a Windows-centric type text window, you'll have to go to VA-RPG. - Dan Bale > -----Original Message----- > From: James David Rich [SMTP:james@dansfoods.com] > Sent: Thursday, June 15, 2000 3:09 PM > To: RPG400-L@midrange.com > Subject: Re: text entry widget? > > CNTFLD doesn't quite do what I want - at least I don't know how to make it > do what I want. Suppose the text the user is editing is longer than what > the screen allows? Say my CNTFLD is 300 chars long and the text the user > edits is 750 chars. So I display the first 300 chars in the CNTFLD. If > the user presses the delete key I want the 301 char of text to move onto > the screen - in other words (IOW?) I need to handle off-screen data. > > On Thu, 15 Jun 2000, John Kennedy wrote: > > Take a look at the CNTFLD (continued-entry field) DDS keyword. It will > > allow inserts and deletes in a multi-line input field. It adjusts text > > following your insert/delete point accordingly and also performs word > wrap. > > > > > Hi folks, > > > Does anyone know of a text entry widget that I can plug into rpg > > > programs, much like gtk of motif? I want to insert and delete text. > I > > > want to be able to place the widget in a specified are of the screen. > It > > > needs to have callbacks that can interface with my rpg programs. > > James Rich > james@dansfoods.com +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.