I make my own :) like this :
<?php
protected function txtMotif_Create() {
$this->txtMotif = new QTextBox($this);
$this->txtMotif->TextMode = QTextMode::MultiLine;
$this->txtMotif->Name = QApplication::Translate('Motif de suppression');
$this->txtMotif->Text = $this->objSuppression->Motif;
$this->txtMotif->Required = true;
$this->txtMotif->Rows = 10;
$this->txtMotif->Columns = 70;
$this->txtMotif->CssClass = 'element_right';
$this->txtMotif->MaxLength = $this->motifMaxLength;
$this->txtMotif->AddAction(new QKeyUpEvent(), new QAjaxAction('Count_char'));
}
protected function Count_char($strFormId, $strControlId, $strParameter) {
$restant = $this->txtMotif->MaxLength - strlen($this->txtMotif->
$this->lblCount->Text = $restant."/".$this->txtMotif->MaxLength;
}
?>
It's good or do find any bugs ?
EDIT: nooooooo à è é count twice :(
That's no good
Any function in qcodo that count txt ? txt->Length didn't work :(