For Programmers: Free Programming Magazines  


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

Katydid

2007-06-08, 1:48 am

http://www.shockingtheworld.com/Pla...sp?movie=726071
Dawson

2007-06-21, 1:04 am

Sarah M. Gellar and Paris Hilton Lesbians Get Messy With Food!
http://www.shockingtheworld.com/e?movie=726071
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com