‎2008 Feb 25 6:14 AM
I would like to have a scrollable text field in my screen painter with a length of 255. Please do help me
‎2008 Feb 25 8:28 PM
Hi,
You cannot define a scrollable text field on a screen, but you can define a scrollable input/output field that looks just like a scrollable text field. Here is what you need to do:
(1) Add an Input/Output field to the screen wherever you want the scrollable text to appear.
(2) Turn on the "Output Only" & "2D Display" attributes for the new Input/Output field.
(3) Set the visible length to a number smaller than 255 & set the Defined length to 255.
(4) Within the screen's PBO, add a simple line of code to populate the new Input/Output field with the desired text.
Best Regards,
Jamie
‎2008 Feb 25 8:28 PM
Hi,
You cannot define a scrollable text field on a screen, but you can define a scrollable input/output field that looks just like a scrollable text field. Here is what you need to do:
(1) Add an Input/Output field to the screen wherever you want the scrollable text to appear.
(2) Turn on the "Output Only" & "2D Display" attributes for the new Input/Output field.
(3) Set the visible length to a number smaller than 255 & set the Defined length to 255.
(4) Within the screen's PBO, add a simple line of code to populate the new Input/Output field with the desired text.
Best Regards,
Jamie
‎2008 Feb 25 8:39 PM
In screen attributes of your Input/Output field you have the check-box Scrollable. Select it and thats it.
‎2008 Feb 25 8:53 PM
I inadvertently left off the step to check the "Scrollable" attribute. That would certainly be required too. Thanks for pointing that out.
Regards,
Jamie
‎2008 Feb 26 3:45 AM
Thanks for ur reply...I actually require a Input/Output Field which is scrollable. I tried out wat u said but no scroll bar is gtting displayed. Could you pls help me out.
‎2008 Feb 27 2:32 PM
A scroll bar will not appear using the technique described earlier. The user can only scroll by placing the cursor in the field.
Regards,
Jamie
‎2008 Feb 25 9:35 PM
Hi,
You can use the Text Editor control to enter multiple lines.
Check the transaction DWDM for a sample code
Thanks
Naren