XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 6:49 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Recycle Bin Core Help!
PostPosted: September 9th, 2014, 10:56 pm 
Offline

Joined: April 8th, 2014, 7:44 am
Posts: 5
Hello everyone! :)

I am making a widget which appears only when the recycle bin is not empty but i cant figure out it's code.. :?:

Can anyone help me??

Thank You :roll: :roll:

_________________
Life's a journey, enjoy it..


Top
 Profile  
 
PostPosted: September 10th, 2014, 12:34 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
So you want an invisible widget/rb when the rb is empty..?? I think it's possible but is a little weird and not usable, don't you think? :)

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


Top
 Profile  
 
PostPosted: September 10th, 2014, 6:01 am 
Offline

Joined: April 8th, 2014, 7:44 am
Posts: 5
Right! i want to do that... (pretty weird . :lol: )

but can you help me?? :|

_________________
Life's a journey, enjoy it..


Top
 Profile  
 
PostPosted: September 10th, 2014, 6:10 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
making transparency to low is also another option,
this way you don't lose the position of your widget


Top
 Profile  
 
PostPosted: September 10th, 2014, 7:11 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
subhanul wrote:
Right! i want to do that... (pretty weird . :lol: )

but can you help me?? :|

Now that I'm thinking is more simple that it seems and no need a script..
When you create the two RB images (empty/full), edit the empty image with any image editor program like GiMP and reduce the opacity to 5%. Then create a normal rb widget! ;)
If you don't know how, send me the two images/state you want to use and I will do it for you..
RB widgets are easy and fast to create.

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


Top
 Profile  
 
PostPosted: September 10th, 2014, 7:41 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
you can also use pnganimate object for it,
it will be cleared when it linked to a file that not exist

so you only have to do these:
1. in the recyclebincore, use your full image for full state
2. in the recyclebincore, in the place for empty state set a filename that doesn't exist
3. add a pnganimate object
4. bind it to recyclebincore and add %Icon tag to binding format


=========
but jimking's way is a better way,
since it's the original way to do that, and you will have no problem in the future,
so have mine as a temporary way


Top
 Profile  
 
PostPosted: September 10th, 2014, 9:07 am 
Offline

Joined: April 8th, 2014, 7:44 am
Posts: 5
Thanks both of you. But i was thinking to make the "Hulk" widget by qiancang appear when my recycle bin is not empty.

Pretty cool haanh.. :lol: ;)

this is the link to quincang's widget:
http://qiancang.deviantart.com/art/Hulk-for-XWidget-305607494

_________________
Life's a journey, enjoy it..


Top
 Profile  
 
PostPosted: September 10th, 2014, 9:18 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
subhanul wrote:
Thanks both of you. But i was thinking to make the "Hulk" widget by qiancang appear when my recycle bin is not empty.

Pretty cool haanh.. :lol: ;)

this is the link to quincang's widget:
http://qiancang.deviantart.com/art/Hulk-for-XWidget-305607494

In this case I don't know which way is better and IF this can be done and combine the recyclebin core functions with the script that the widget uses..
I don't know if @hamid can help you but in this case I can't..
Also I don't know if qiancang will be happy seeing a "copy" of his widget.. Yes it will be a RB (if can be done) but the base function and style is the same widget!

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


Top
 Profile  
 
PostPosted: September 12th, 2014, 11:30 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
This is part of code i use to change an image of a shortcut to the recycle bin, if the bin if empty or not empty, could be modified to what you want.

function recyclebincore1OnUpdate(Sender) // change recycle bin Icon

if (eval("shortcutcore" + i).path == "recyclebin" && recyclebincore1.items == 0) // if shortcut is to the recycle bin and the bin is empty
{
eval("shortcutcore" + i).cmd(null, "!SetIcon=recycleMT.png" );
}
if (eval("shortcutcore" + i).path == "recyclebin" && recyclebincore1.items > 0) // if shortcut is to the recycle bin and the bin is not empty
{
eval("shortcutcore" + i).cmd(null, "!SetIcon=recycleNMT.png" );
}


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 12 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