Published on April 29, 2008 By RPGFX In Skinning
ok, if any of you expert widget makers out there would be willing to make me a very specific widget, let me know.  What I'm looking for is this...

An age widget, which simply uses some kind of script to calculate someone's age based on me entering their date of birth or something like that, and displays just their name and age.  And the age would change automatically when the person has a birthday.  Is that possible?  I'm sure one of you amazing widgeteers out there can do this.  I've got alot of cousings and nephews and uncles who's age I can never remember.  And rather than having to look up birthdays all the time, then figure out their age from that, I'd like my computer to do it for me...   Ok, now here's the annoying part.  I want it to be pretty simple looking... just a basic white background, with a little shadowing and bevelling on the edges, but not much.  The width needs to be 138, (the width of all my other widgets I use) and the height of course would/could expand depending on how many names are on the list... And 8 pt Seogue for the font, in black.  And just a simple little button that brings up a dialog to add names and birthdates...

I know I'm being kind of annoying and specific, but hey, if I'm going to request a widget, I might as well take all the guess work out of it, right? 

Below is a mock up that I came up with...

Thanks so much ahead of time if anyone decides to give this a go...



Comments (Page 1)
4 Pages1 2 3  Last
on Apr 29, 2008
In the works
on Apr 29, 2008
that one is REALLY tuff.. LOL

1. use DX.. make a new TEXT object:


'Called when the script is executed
Dim Person(10),Age(10)

Sub Object_OnScriptEnter
'setup a counter for the # of people
Cnt = 0

'increment the counter, Set the name, and birthday:
' Add more of these lines to add more people
Cnt = Cnt + 1 : Person(Cnt) = "RomanDA" : Age(Cnt) = "11/20/1964"
Cnt = Cnt + 1 : Person(Cnt) = "Alex" : Age(Cnt) = "9/5/1995"

object.text = "Current Ages: "& vbCRLF
For x = 1 To Cnt
'--- get the month difference between the dates
vMonths = DateDiff("m", Age(x), date)
'-- \ 12 = ' integer division (no decimals!!)
vYears = vMonths \ 12
object.text = object.text & Person(x) & ": " & vYears & vbCRLF
Next
End Sub

Thats it,
im sure there is a lot more to make it PERRRDY
on Apr 29, 2008
that's a different language to me, Rom...

thanks SirSmiley!
on Apr 29, 2008
that one is REALLY tuff.. LOL
Show off.  
on Apr 29, 2008
its VBSCRIPT.. its built into DesktopX
on Apr 29, 2008
im sure there is a lot more to make it PERRRDY


No guarantees on that one.

Edit: Here's picture. These aren't the graphics that will be used just got sick of looking at red/white masks.

You will be able to disable the tooltip & set font type, color, size in widget preferences.
To add a person you click on the name header, to toggle the list you click on the age header.
Still figuring out where to put the delete button/function. This should be done Friday
on Apr 30, 2008
that's fantastic! Thanks so much! Looking forward to it.
on Apr 30, 2008
SirSmiley you do impressive work!
on Apr 30, 2008
Now that is something that should find it's way to the gallery library, don't you think?  
on Apr 30, 2008
well I'm hoping he doesn't make it just for me... I was assuming it would be uploaded here...
on Apr 30, 2008
Thanks guys.

It's definitely going in the gallery just like the Easy Button.

Have some more preferences coding and maybe some additional sort options for display. Right now it sorts by name but, will see about adding a sort by age and by birth date. Also, a reverse sort for those.

Actually this may have solved an issue with a CSV Parser object that got rejected a while back. And here I thought it was just Zubaz!

on Apr 30, 2008
Good karma on ya, SirS! Nice work.
on May 01, 2008
Nice work Adam!
on May 03, 2008
Update, warts and all.

The goal is to make this simple to skin by merely replacing the images.
All adjustments should be made automatically by the script

Features Implemented:
- Titles, List and Tooltip have separate text/font settings
- Simple ascending/descending sort by name or age. Click on column title.
- Height is resized automatically.
- Width is sizeable via a sizing control.
- Enable/Disable Tooltip option

To Do:
- Tooltip Date Format
- Add alarm option to script/widget preferences.
- Get regclean function to work directly from script.
- Skin graphics and icon

Screenshot Info:
First is sorted on name descending order
Second, is sorted on age descending.

on May 03, 2008
coming along nicely...
4 Pages1 2 3  Last