Skip navigation.
Home
The QNX Community Portal

View topic - PtMultiText maxtext

PtMultiText maxtext

Isn't the name clear?

PtMultiText maxtext

Postby invoker » Tue May 20, 2008 11:43 am

Hi,

There is a possibility of setting the max parameter which prevent
of entering more chars if reached. But is there any way of setting the
Ptmultitext to keep only the n last entered chars?
you know... console like 8)
or do we need to do it manually? :?
invoker
Active Member
 
Posts: 69
Joined: Tue Apr 15, 2008 5:08 pm

RE: PtMultiText maxtext

Postby maschoen » Tue May 20, 2008 2:51 pm

Do you mean if the user enters 200 chars, keep only the last 100 they entered?

If all else fails, you can write your own widget.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Postby invoker » Tue May 20, 2008 6:36 pm

yes exactly - how can I do it?
invoker
Active Member
 
Posts: 69
Joined: Tue Apr 15, 2008 5:08 pm

Postby maschoen » Tue May 20, 2008 7:19 pm

I believe that there is a call back for when the data is modified. You would need a routine to check each time, and if necessary update the field.

Another approach would be to get the source and modify the widget code, either creating your own widget, or by just adding functionality to the current widget. That is you could have an on/off switch to do what you want, using the existing max chars variable.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 1 guest