Help: How to set items’ background image by script?

Help: How to set items’ background image by script?

We can set one item’s background image by hand. At the same time, we can set all item’s background image in the desktop/folder just by setting once.

By script, we can set one item’s background image like that:

item.setBoxBackground(image1, “n”); // set a normal bg image to image1.

Then how can we set the background image of all items in the destkop by not iterating all items? Is it not possible? We have to iterate its setting?

]]>

4 Commentsto Help: How to set items’ background image by script?

  1. Anonymous says:

    < ![CDATA[

    Edit: no, it doesn’t. (Silly answer, sorry)



    Does


    container.setBoxBackground(image1,”n”)


    works? (Didn’t tested)

    ]]>

  2. Anonymous says:

    < ![CDATA[

    I was a little embarrassed about not being able to find related API yesterday, because I’ve assumed nearly most(or all) LL actions/settings can be done/set by using script.



    Anyhow we can implement the same result by iterating all sub-items. However…


     

    ]]>

  3. Anonymous says:

    < ![CDATA[

    I think we can set item related properties (from the getProperties() ) directly on containers. That’s why I mistakenly suggested the above.


    However the setBoxBackround is a method only available to items, so it’s not possible.



    Pierre Hébert​​? 

    ]]>

  4. Anonymous says:

    < ![CDATA[

    KyungJoon Lee 올려두신 튜토리얼을 꼼꼼히 보는중인데.제가 240×90 아이콘을 만들엇는데( 좌측 아이콘 우측 라벨 일체형) 아이콘을 불러오면 우측 텍스트가 잘리더라구요..편집창을 늘리거나 이런건 효과가 없고 이너스케일을 10프로 까지 낮추니 그제서 보이던데..아이콘 크기가 너무 큰가요?

    ]]>

Leave a Reply

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