XWidgetSoft Forum

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

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: May 1st, 2014, 8:42 pm 
Offline

Joined: August 14th, 2012, 11:49 pm
Posts: 14
Code:
function recyclebinOnChange(Sender)
{
  if(recyclebincore1.get("%IsEmpty")!='full')
  {
   recyclebin.Background.SolidColor.Color = rgba(194,0,0,255)
  }
  else if(recyclebincore1.get("%IsEmpty")!='empty')
  {
   recyclebin.Background.SolidColor.Color = rgba(0,0,0,3)
  }
}


Top
 Profile  
 
PostPosted: May 1st, 2014, 11:45 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
I use
Code:
recyclebincore1.items == 0
to check if the bin is empty and
Code:
recyclebincore1.items > 0
to check it is not empty.


Top
 Profile  
 
PostPosted: May 2nd, 2014, 1:14 am 
Offline

Joined: August 14th, 2012, 11:49 pm
Posts: 14
Thank you all for your participation, works code meme


Top
 Profile  
 
PostPosted: May 2nd, 2014, 1:46 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
maybe i'm wrong, but i think [recyclebincore] doesn't update on restoring items from recyclebin


@meme:
nice thing, how did you found it?


Top
 Profile  
 
PostPosted: May 3rd, 2014, 12:27 am 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Quote:
@meme:
nice thing, how did you found it?

I think I found it in the AutoCompletion.txt file created by digigamer - http://bbs.xwidget.com/viewtopic.php?f=10&t=3601
%Items=date\column{}(recycle)\style{+B}%Items\style{-B}:int//File Count


Top
 Profile  
 
PostPosted: May 3rd, 2014, 2:06 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
oh, yes, it's available in autocomplete,
i don't know why i didn't found it before

but how did you know that it could be used also this way:
recyclebincore1.items

because all the cores use .get("%items") format for getting tags


Top
 Profile  
 
PostPosted: May 3rd, 2014, 5:53 pm 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
Most tags in the cores are available this way... We are busy documenting all of them, shall be ready pretty soon :mrgreen:

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
PostPosted: May 3rd, 2014, 9:03 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Quote:
We are busy documenting all of them, shall be ready pretty soon
Thank you digigamer :D the work you do for us is awesome ;)


Top
 Profile  
 
PostPosted: May 4th, 2014, 2:42 am 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
And nice thing is... it going online

_________________
Life is a myriad game... Just play it!


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: Bing [Bot] and 47 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