[Laszlo-user] trying to fix some of LPP-1931... where is the source for "text"?

William Krick wkrick at eio-online.com
Wed Jun 21 14:25:11 EDT 2006


ok, I can't get the text alignment issues totally worked out but this change
seems to fix the alignment and setBGColor() parts of the bug...


in datacombobox.lzx, change this...


<text name="_text" x="8" y="0"
      width="${ parent.width - 19 }" />


...to this...


<text name="_text" x="2" y="2"
      width="${ parent.width - 19 }"
      height="${ parent.height - 2 }"
      bgcolor="${ parent.bgcolor }" />








  -----Original Message-----
  From: Henry Minsky [mailto:henry.minsky at gmail.com]
  Sent: Wednesday, June 21, 2006 1:21 PM
  To: William Krick
  Cc: Laszlo-User
  Subject: Re: [Laszlo-user] trying to fix some of LPP-1931... where is the
source for "text"?


  <text> is a class defined in the LFC, named LzText

  It is defined in the file views/LzText6.as in the current release. (In the
future it's going to to be called LzText.lzs, and
  will have a portable implemenation, with the platform-specific stuff
implemented by the new LztextSprite class).

  You can try a patch to a method if you like without having to rebuild the
LFC by cutting and pasting the relevant method out of the .as file and
including it in
  a <script> block which you include at the start of your app (don't forget
the <![CDATA[ ]]> if there's any XML metachars in there).









  On 6/21/06, William Krick <wkrick at eio-online.com> wrote:
    I'm trying to fix an alignment problem with the text and background in
the
    datacombobox...

    http://www.openlaszlo.org/jira/browse/LPP-1931


    If I go into datacombobox.lzx and change this...

    <text name="_text" x="8" y="0"
          width="${ parent.width - 19 }" />

    ...to this...

    <text name="_text" x="2" y="2"
          width="${ parent.width - 19 }"
          height="${ parent.height - 2 }" />

    ...then the background area of the "text" object is the same size and
    position as a normal combobox.

    However the actual characters inside the view need be moved to get the
    alignment exact...  x+2, y+1

    I know that in an edit text, there's a "text_y" property that you can
use to
    effect the alignment of the text.

    I can't see anything in the docs of <text> so I'd like to look at the
source
    but I can't seem to find it.

    Anyone know where I should look?

    _______________________________________________
    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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20060621/22e82278/attachment-0001.html


More information about the Laszlo-user mailing list