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 😊
]]>« After screen rotation it zooms in. (Previous Post)
< ![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();
]]>
< ![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)
]]>
< ![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
]]>
< ![CDATA[
Ok great Pierre, thanks for the explanation! 🙂
]]>