[Laszlo-dev] [Laszlo-user] problem "passing" attributes
Jim Grandy
jgrandy at laszlosystems.com
Tue Mar 14 18:08:04 EST 2006
Oliver's already filed a bug to do this:
http://www.openlaszlo.org/jira/browse/LPP-1594
I'd be in favor of it, but whoever did the work would need to ensure
that our "live" older code -- /demos, /examples, /laszlo-explorer,
and the like -- still worked.
jim
On Mar 14, 2006, at 1:58 PM, Henry Minsky wrote:
> Note, maybe I should propose we change the default for text to
> resize=true?
>
> It would break some older code, but it's pretty easy to modify the
> app for this...
>
>
>
> On 3/14/06, Henry Minsky <henry.minsky at gmail.com> wrote:
> <text resize="true"> maybe?
>
> By default text doesn't autosize it's width, but the "resize"
> parameter is supposed to
> make it recompute it's width when the text changes.
>
>
>
> On 3/14/06, William Krick <wkrick at eio-online.com> wrote:
> I have a class that wraps a text control.
>
> I want to be able to set the text on an instance of the class and
> have it
> affect the text attribute of the inner text control.
>
> The code below demonstrates what I'm trying to do. Note that while it
> almost works, the text gets cut off. It appears that the inner
> text control
> is using some sort of default width instead of sizing to the text.
>
> What is the "correct" way to code something like this in laszlo?
>
>
>
> <canvas width="500" height="300">
>
> <class name="label" extends="view" bgcolor="yellow" height="22">
> <attribute name="text" type="string" value=""/>
> <text y="2" text="${parent.text}"/>
> </class>
>
> <view width="250" height="24" bgcolor="black">
> <label x="1" y="1" width="248" text="ABCDEFGHIJKLMNOPQRSTUVWXYZ"/>
> </view>
>
> </canvas>
>
> _______________________________________________
> Laszlo-user mailing list
> Laszlo-user at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
>
>
>
>
> --
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20060314/c6e70d2e/attachment-0001.html
More information about the Laszlo-dev
mailing list