XWidgetSoft Forum
https://www.bbs.xwidget.com/

Help Pls Set wallpaper always in FIT mode
https://www.bbs.xwidget.com/viewtopic.php?f=8&t=5128
Page 1 of 1

Author:  Shanshiburi [ October 11th, 2014, 11:28 pm ]
Post subject:  Help Pls Set wallpaper always in FIT mode

Pls some one tell me how to use !SetWallpaper function to set any image as a wallpaper in "fit" or *stretch* mode.. they set in *fill* mode by default.

Author:  Jimking [ October 12th, 2014, 1:32 am ]
Post subject:  Re: Help Pls Set wallpaper always in FIT mode

I think it's not possible (except I'm missing something) and you need to wait the next version of XW. It's actually a very good request/idea..

Author:  hamid [ October 17th, 2014, 6:59 pm ]
Post subject:  Re: Help Pls Set wallpaper always in FIT mode

you can use these commands in code:
Code:
SetWallpaper("filename.ext") //it will use last used mode for styling
SetWallPaper2("filename.ext",StyleNumber) //you should set a style by using a number

i don't know style numbers correctly, but i have tested these and they works:



example:
Code:
SetWallpaper("image1.jpg") //sets wallpaper and uses previous StyleMode
SetWallPaper2("image1.jpg",0) //sets wallpaper and makes it Center
SetWallPaper2("image1.jpg",1) //sets wallpaper and makes it Tile
SetWallPaper2("image1.jpg",2) //sets wallpaper and makes it Stretch

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/