ok here's my code.
Here's what happens: I have an xlabel that displays a trash can icon.
Following the xInterface readme, It refreshes "TrashLabel" with a new icon depending on if the trash is full or not.
;--xInterface for "trashlabel"--
xTrashBecomesEmpty !LabelRefresh TrashLabel TrashLabelImage "trash.png"
xTrashBecomesFilled !LabelRefresh TrashLabel TrashLabelImage "trashfull.png"
xTrashCheckInterval 2
;--xlabel for trash can--
*Label TrashLabel
TrashLabelPaintingMode .image
TrashLabelX -44
TrashLabelY -44
TrashLabelImage "trash.png"
You should have trash icons named "trash.png" and "trashfull.png" for this particular example to work, and you probably have your own ideas on what to name the label, but this should get you started.
I also have a popup that goes along with it:
;--TrashLabel popup menu--
*Popup "Recycle Bin" !New !PopupTrash
*Popup "Empty recycle bin" !xTrashEmpty
*Popup "Open recycle bin" "$BitBucket$"
*Popup ~New
and add this to the "TrashLabel" entry:
TrashLabelOnLeftClick !PopupTrash