tree view widget

Ali Lloyd ali.lloyd at livecode.com
Wed May 18 09:51:27 EDT 2016


Hi Klaus,
Although we currently have no plans to do that ourselves, it shouldn't be
too hard to turn the string that's used for the tree view into a property
of the widget, since it is almost completely independent of the rest of the
code.

You'd just need to define a new member variable (say mAddText), set up a
property for it and replace

paintText("Add new element", "left", tTextRect, false, false)

with

paintText(mAddText, "left", tTextRect, false, false)



On Wed, May 18, 2016 at 1:02 PM Klaus major-k <klaus at major-k.de> wrote:

> Hi all,
>
> > Am 17.05.2016 um 21:32 schrieb J. Landman Gay <jacque at hyperactivesw.com
> >:
> >
> > The array is malformed. The script should be:
> >
> > on mouseUp
> >  put "Dog,Cat,Horse" into temp
> >  repeat with i = 1 to the number of items of temp
> >    put item i of temp into tHobby["John"]["Animal"][i]
> >  end repeat
> >  put "Dog,Tortoise" into temp
> >  repeat with i = 1 to the number of items of temp
> >    put item i of temp into tHobby["Jane"]["Animal"][i]
> >  end repeat
> >  put  "Football,Swimming" into temp
> >  repeat with i = 1 to the number of items of temp
> >    put item i of temp into tHobby["Willy"]["Sport"][i]
> >  end repeat
> >  set the arraydata of widget "Tree View" to tHobby
> > end mouseUp
> >
> > Note the square brackets around each sublevel.
>
> yep, that worked great, thanks!
>
> Question:
> Any chance we will be able to TRANSLATE the
> „Add new element“ string?
>
> Yes, not all of our users speak english, although the
> mothership seems to presume this... 8-)
>
>
> Best
>
> Klaus
> --
> Klaus Major
> http://www.major-k.de
> klaus at major-k.de
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list