PtText

is there a way to resize the PtText as the user enters in the data… ? i
dont want to have the fixed size for the PtText since there is no way to
know how long the data the user is going to input.

Hi Ran,

I have spoken to one of the developers and here is how you change the
size for the PtText widget.

In your PtText widget:

  1. Set X resize flags to Pt_RESIZE_X_ALWAYS.
  2. Attach a Pt_CB_MODIFY_NOTIFY callback.
  3. In the callback you have to call PtExtentWidget( widget );

Hope this helps
Regards
Brenda


ran zhang wrote:

is there a way to resize the PtText as the user enters in the data… ? i
dont want to have the fixed size for the PtText since there is no way to
know how long the data the user is going to input.