Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Scrollable text field in module pool

Former Member
0 Likes
2,882

I would like to have a scrollable text field in my screen painter with a length of 255. Please do help me

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,409

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,410

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

Read only

0 Likes
1,409

In screen attributes of your Input/Output field you have the check-box Scrollable. Select it and thats it.

Read only

0 Likes
1,409

I inadvertently left off the step to check the "Scrollable" attribute. That would certainly be required too. Thanks for pointing that out.

Regards,

Jamie

Read only

0 Likes
1,409

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.

Read only

0 Likes
1,409

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

Read only

Former Member
0 Likes
1,409

Hi,

You can use the Text Editor control to enter multiple lines.

Check the transaction DWDM for a sample code

Thanks

Naren