Показать сообщение отдельно
Старый 13.03.2003, 12:32   #6  
Garic is offline
Garic
NavAx
Аватар для Garic
NavAx Club
 
393 / 63 (3) ++++
Регистрация: 23.07.2002
Адрес: Москва
Можно поизвращаться с textChange
Например у нас для поля ввода времени он такой:

PHP код:
public void textChange()
{
    
str newText this.text();
    
str char;
    
int length;
    
int i;
    
int n;
    
container numbers = ['0','1','2','3','4','5','6','7','8','9'];

    
super();

    
length strlen(newText);
    
char substr(newText,length,1);
    if (
oldText != newText && confind(numbers,char))
    {
        
char substr(newText,length-1,1);
        if (
strlen(newText) > && confind(numberschar))
        {
            for (
i=1i<=lengthi++)
            {
                if (!
confind(numbers,substr(newText,i,1)))
                {
                    
n++;
                }
            }

            if (
2)
            {
                
oldText newText ':';
                
this.pasteText(':');
            }
        }
    }

    
oldText newText;

__________________
С уважением, Игорь Ласийчук.