XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Recycle Bin Core Help! https://www.bbs.xwidget.com/viewtopic.php?f=8&t=5002 |
Page 1 of 1 |
Author: | subhanul [ September 9th, 2014, 10:56 pm ] |
Post subject: | Recycle Bin Core Help! |
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 ![]() ![]() |
Author: | Jimking [ September 10th, 2014, 12:34 am ] |
Post subject: | Re: Recycle Bin Core Help! |
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? ![]() |
Author: | subhanul [ September 10th, 2014, 6:01 am ] |
Post subject: | Re: Recycle Bin Core Help! |
Right! i want to do that... (pretty weird . ![]() but can you help me?? ![]() |
Author: | hamid [ September 10th, 2014, 6:10 am ] |
Post subject: | Re: Recycle Bin Core Help! |
making transparency to low is also another option, this way you don't lose the position of your widget |
Author: | Jimking [ September 10th, 2014, 7:11 am ] |
Post subject: | Re: Recycle Bin Core Help! |
subhanul wrote: Right! i want to do that... (pretty weird . ![]() 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. |
Author: | hamid [ September 10th, 2014, 7:41 am ] |
Post subject: | Re: Recycle Bin Core Help! |
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 |
Author: | subhanul [ September 10th, 2014, 9:07 am ] |
Post subject: | Re: Recycle Bin Core Help! |
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.. ![]() ![]() this is the link to quincang's widget: http://qiancang.deviantart.com/art/Hulk-for-XWidget-305607494 |
Author: | Jimking [ September 10th, 2014, 9:18 am ] |
Post subject: | Re: Recycle Bin Core Help! |
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.. ![]() ![]() 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! |
Author: | meme [ September 12th, 2014, 11:30 pm ] |
Post subject: | Re: Recycle Bin Core Help! |
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" ); } |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |