Symptom

In PowerBuilder, a RichText control with the WordWrap property checked is not wrapping text. 

Environment

  • PowerBuilder
  • RichText
  • RTE

Reproducing the Issue

1.  In PowerBuilder, open an existing application.

2.  Open a window and add a RTE control.

3.  Make sure that the WordWrap property is checked for the RTE Control.

4.  Run the application and add a long sentence that is longer than the width of the RTE control.

5.  Notice that the text you entered does not wrap around. 

Cause

This issue occurs because PowerBuilder sets the default page size to 8 1/2 x 11 for the control.

Resolution

Add the following property to the pb.ini:

[RichText]

PageSizeAsControlSize=1

0
0