Uw opmerkingen

В качестве четвертого параметра можно передавать контекст работы (то, что является объетом this)

в качестве объекта можно передавать переменную и к ней же обращаться (подобно function.call(glbl, arg1, arg2.. в языке JS), чтобы не плодить лишние.

IR.AddListener(IR.EVENT_START,0,function()
{
   var glbl;
   IR.AddListener(IR.EVENT_ITEM_PRESS, IR.GetPopup("Страница 1").GetItem("Item 1"), function ()
   {
      this.Name2 = IR.GetPopup("Страница 1");
      IR.AddListener(IR.EVENT_ITEM_PRESS, this.Name2.GetItem("Item 2"), function()
      {
         this.Name1 = "Свет";
         IR.Log(this.Name2);
         IR.GetPopup("Страница 1").GetItem("Item 3").Text = this.Name1;
      },this);
   },glbl);
});

либо создавать новый объект

IR.AddListener(IR.EVENT_START,0,function()
{
   var glbl; 
   IR.AddListener(IR.EVENT_ITEM_PRESS, IR.GetPopup("Страница 1").GetItem("Item 1"), function ()
   {
      this.Name2 = IR.GetPopup("Страница 1");
      var obj2=this;
      IR.AddListener(IR.EVENT_ITEM_PRESS, this.Name2.GetItem("Item 2"), function()
      {
         this.Name1 = "Свет";
         IR.Log(this.Name2);
         IR.GetPopup("Страница 1").GetItem("Item 3").Text = this.Name1;
      },obj2);
   },glbl);
});

обычно в качестве контекста передают сам объект, на который создается событие.

var obj=Name2.GetItem("Item 2");
IR.AddListener(IR.EVENT_ITEM_PRESS, obj, function(){IR.Log(this.Name);},obj);


Мне кажется, что это не самое изящное решение задачи, ведь придется еще добавлять RemoveListener


Подумайте над другими вариантами

http://support.iridiummobile.net/topics/11768-listener-dlya-neskolkih-elementov/#comment-71653


Посмотрите еще свойство Parent http://dev.iridiummobile.net/GUI_API#Item

In app chooser screen is always black when switching from another application.

iPad, iPhone

Try to use

sudo dpkg --add-architecture armhf
sudo apt-get update

https://launchpad.net/ubuntu/xenial/arm64/multiarch-support


or recompile kernel to add support of ARM32

run make menuconfig ARCH=arm64

You are right, you can solve it this way

l_oGList1.Adapter.total += 1;
l_oGList1.Position = l_oGList1.Adapter.total+1; // go to the last position of list 
l_oGList1.Adapter=l_oGList1.Adapter; //wtf?!
l_oGList1.Update();

:)

also works on i686 (without a VirtualMachine)


sudo apt-get install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
sudo apt-get install qemu-user-static

and many symbol links of libraries

sudo ln -s /usr/arm-linux-gnueabihf/lib/....so /lib/....so