XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 11:19 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Change Default Image
PostPosted: October 2nd, 2013, 4:26 pm 
Offline
User avatar

Joined: September 7th, 2013, 11:00 am
Posts: 6
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!

_________________
Image


Top
 Profile  
 
 Post subject: Re: Change Default Image
PostPosted: October 2nd, 2013, 4:32 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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..

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: Change Default Image
PostPosted: October 14th, 2013, 1:21 pm 
Offline
User avatar

Joined: September 7th, 2013, 11:00 am
Posts: 6
Thanks for the reply jimking,

I'm not sure what to put for the OnDblClick, could you explain?

_________________
Image


Top
 Profile  
 
 Post subject: Re: Change Default Image
PostPosted: October 14th, 2013, 2:54 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
On the last "Functions" tab click on the button on the right and select the first code "!ShowSetting".

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
 Post subject: Re: Change Default Image
PostPosted: October 14th, 2013, 3:08 pm 
Offline
User avatar

Joined: September 7th, 2013, 11:00 am
Posts: 6
Okay that worked, but now when I double click the image, it asks for the Picture Folder and not the Picture File :?

_________________
Image


Top
 Profile  
 
 Post subject: Re: Change Default Image
PostPosted: October 14th, 2013, 5:14 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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).

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Bing [Bot] and 46 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group