Home > Archive > Prolog > June 2007 > XPCE: text_item maximum allowed length
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
XPCE: text_item maximum allowed length
|
|
| Massimiliano Campagnoli 2007-05-19, 7:04 pm |
| Hi,
I need to limit the maximum number of characters allowed to be entered
in a text_item.
How can I impose a maximum lenght on the string entered in a
text_item ?
Thanks
| |
| Jan Wielemaker 2007-05-19, 7:04 pm |
| On 2007-05-19, Massimiliano Campagnoli <maxi@paoloastori.com> wrote:
> Hi,
> I need to limit the maximum number of characters allowed to be entered
> in a text_item.
> How can I impose a maximum lenght on the string entered in a
> text_item ?
Not directly. You can subclass it and redefine the event-processing to
achieve this. In general, not XPCE, nor (SWI-)Prolog has limits om the
lengths of text. Typically, test before sending the text to something
that cannot handle it.
--- Jan
| |
|
|
|
|
|
|
|