XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Change Default Image https://www.bbs.xwidget.com/viewtopic.php?f=8&t=3599 |
Page 1 of 1 |
Author: | Overflow [ October 2nd, 2013, 4:26 pm ] |
Post subject: | Change Default Image |
Hey, So, I have a default image in my widget and I want to make it so that when the user double clicks that image, he can browse for another one on his PC and put it in that place (with same fixed dimensions). Any ideas? Thanks! |
Author: | Jimking [ October 2nd, 2013, 4:32 pm ] |
Post subject: | Re: Change Default Image |
Is simple.. Just use the photoalbum core for the image and in the functions tab select "OnDlClick" and choose the Album settings code..! pm: for the image frame for "WrapMode" better use "stretch" option.. |
Author: | Overflow [ October 14th, 2013, 1:21 pm ] |
Post subject: | Re: Change Default Image |
Thanks for the reply jimking, I'm not sure what to put for the OnDblClick, could you explain? |
Author: | Jimking [ October 14th, 2013, 2:54 pm ] |
Post subject: | Re: Change Default Image |
On the last "Functions" tab click on the button on the right and select the first code "!ShowSetting". |
Author: | Overflow [ October 14th, 2013, 3:08 pm ] |
Post subject: | Re: Change Default Image |
Okay that worked, but now when I double click the image, it asks for the Picture Folder and not the Picture File ![]() |
Author: | Jimking [ October 14th, 2013, 5:14 pm ] |
Post subject: | Re: Change Default Image |
Overflow wrote: Okay that worked, but now when I double click the image, it asks for the Picture Folder and not the Picture File ![]() I'm not 100% if can this done with a special script code, but I don't think that can choose a path for a single image file.. The photoalbumcore works as a slideshow. BUT you can use this trick as I did with a "similar" widget: http://jimking.deviantart.com/art/Wante ... -373335499 FOR ADD AND SHOW A SINGLE IMAGE AS I DID HERE IS THIS SIMPLE TRICK: Create a folder in your pc (any place) and add only the picture that the widget will use. Right click on the widget, select "Photo settings" and select the folder that you created. So with only one picture in folder, there is no any "slideshow" and the widget will show only this pic. That's all! or increase the "Refresh Interval" (click on the photoalbumcore on the bottom) to the max value 24h so pratically the widget will change a pic every 24h and it will be as a single pic! (the 24h apply from the moment that will open the widget). |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |