Menu

#114 Changed LabeledEdit Component Code (Buggy)

open
nobody
Component (61)
5
2008-01-16
2008-01-16
No

Good day
0-=0-==0-

I am new to forum, thus please excuse if posted in wrong Thread.

I have changed the LabeledEdit's Code as the CharCase part of it was buggy, Basically Although the text shown in box is Capital B, it returned a lowercase b that was typed on client side.

Change is as follows

//==================================

Class : CustomTextField

Line 2287 Source : comctrls.inc.php

protected function AdjustText()
{
if ($this->_charcase == ecUpperCase)
{ $this->_text = strtoupper($this->_text); }
else
if ($this->_charcase == ecUpperCase)
{ $this->_text = strtolower($this->_text); }
}

Changed to

protected function AdjustText()
{
if ($this->_charcase == ecUpperCase)
{ $this->_text = strtoupper($this->_text); }
else
if ($this->_charcase == ecLowerCase)
{ $this->_text = strtolower($this->_text); }
}

Line 2532 : Source : comctrls.inc.php

protected function readText() { return $this->_text; }

Changed to

protected function readText() { $this->AdjustText(); return $this->_text; }

//==================================

Hope it helps

Thanks for great product.

HAve a good day

Johannes

Discussion


Log in to post a comment.