End of the String

How can I show the end of the string in PtText widget if
the length of this string is more than PtText size?

Thank you.

In code: try tight justifying the test. I haven’t tried this, it’s just a
thought, Better yet, make the size bigger.

As a user, put the cursor in that field and right arrow to the end of the
field.


Bill Caroselli – 1(530) 510-7292
Q-TPS Consulting
QTPS@EarthLink.net


“Leonid Khait” <lhait@diaspro.com> wrote in message
news:01c17f1b$c74ad7e0$d7103bd5@khait…

How can I show the end of the string in PtText widget if
the length of this string is more than PtText size?

Thank you.

That’s “right” justifying.

Hello Leonid,

I think what you want is the PtExtentWidget(). If you set the string
resource of a PtText widget and then call PtExtenWidget(widget)it forces
the specified widget to calculate its preferred size and apply
its resize policy. Just make sure to set your resize flags up. ie)
Pt_RESIZE_X_AS_REQUIRED.

Regards,
Dave B.





Leonid Khait wrote:

How can I show the end of the string in PtText widget if
the length of this string is more than PtText size?

Thank you.

Thank you,
But I do not whant to increase PtText widget size!

apps <apps@qnx.com> çàïèñàíî â ñòàòüþ <3C1117C0.2010503@qnx.com>…

Hello Leonid,

I think what you want is the PtExtentWidget(). If you set the string
resource of a PtText widget and then call PtExtenWidget(widget)it forces
the specified widget to calculate its preferred size and apply
its resize policy. Just make sure to set your resize flags up. ie)
Pt_RESIZE_X_AS_REQUIRED.

Regards,
Dave B.





Leonid Khait wrote:

How can I show the end of the string in PtText widget if
the length of this string is more than PtText size?

Thank you.
\