Hello

Hello,

Can you explain me how to use “f.wY”, please?

I can access the folder background (i can change the color) but now i’d like to set the Y folder position by script (eg y=400).

Thanks a lot 😊

]]>

4 Commentsto Hello

  1. Anonymous says:

    < ![CDATA[

    you need to use it like this:



    // retrieve a folder item


    var f = LL.getCurrentDesktop().getItemByLabel(“your folder”); 



    // set the property (you can set several properties at once between edit() and commit()


    f.getProperties().edit().setInteger(“f.wY”, 400).commit();

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Thanks a lot Pierre Hébert I needed setInteger


    Sometimes in the wiki I don’t know which “class” to choose…


    Easier in french : comment savoir que ‘f. wY’ s’utilise avec setInteger, est-ce l’expérience qui permet de le savoir ou est-ce qu’il y a une façon de faire/d’apprendre ? Merci


    (I’ll translate if useful for users)

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Indeed this is not trivial nor explained anywhere. In the API doc the second column gives the type for the property, hence you can deduce from this type what method to use: int=getInteger/setInteger, boolean=getBoolean/setBoolean, and so on.



    Link to the api doc:


    http://www.pierrox.net/android/applications/lightning_launcher/script/reference/net/pierrox/lightning_launcher/script/api/PropertySet.html

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Ok great Pierre, thanks for the explanation! 🙂

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *