[Laszlo-dev] proposal to add "enabled' flag to LzInputText

Henry Minsky henry.minsky at gmail.com
Tue Jul 5 15:31:51 PDT 2005


Yes I think that would make sense, given that they now share the same
underlying Flash object (a TextField).

We still need to come up with a consistent HTML escaping convention
for literal text in LZX source files. The question is what Javascript
gets compiled from a source element

<text>&lt;foo&gt;</text>

The question is what do we do if inputtext is behaving differently
than non-input text, because we have the 'html' flag set differently.
We want HTML enabled  by default on the text fields (and there should
be a way to toggle that ), but we currently have HTML disabled by
default on input text fields, for performance reasons, and for
backwards compatibility.


On 7/5/05, Oliver Steele <steele at laszlosystems.com> wrote:
> Should inputtext and text be combined into one class, with an
> attribute of editable?
> 
> Then inputtext would be:
>    <class name="inputtext" extends="text" editable="true"/>
> 
> On Jul 5, 2005, at 2:56 PM, Henry Minsky wrote:
> > The Flash TextField object can be switche from input text to read-only
> > text by toggling it's "type" field from 'input' to 'dynamic'.
> >
> > I would like to expose this behavior to allow users to toggle an input
> > text field to be read only.
> >
> > I propose adding an API like
> >
> > LzInputText.setEnabled(val) {
> >   if (val == true) {
> >       this.__LZtextclip.type = 'input';
> >   } else {
> >      this.__LZtextclip.type = 'dynamic';
> > }
> > }
> >
> >
> >
> >
> > --
> > Henry Minsky
> > Software Architect
> > hminsky at laszlosystems.com
> >
> > _______________________________________________
> > Laszlo-dev mailing list
> > Laszlo-dev at openlaszlo.org
> > http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
> >
> 
> 


-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com



More information about the Laszlo-dev mailing list