[Release] Unit Converter Desklet

Here is an unit converter widget for AveDesk. It is based on Konfab's unit converter widget, so it might be quite different from Dashboard one, which I have not seen ever.

Screenshot:

Screenshot.png

Download

#328417

I-love-you :D

#328423

I love it but... it has US pints instead of imperial/UK pints: It's stealing my beer ! :D

btw - units are hardcoded, aren't they ? :

#328431

Incredibly cool! :D I'll comment more when I finished my pizza, but this deserves some cool comments!

#328434

Great desklet. Now maybe I can figure out metric a little better!:)

#328442

ehm cant download this one????

only thing i'd see are glyphs ;)

#328446

Amazing... on of the widgets that keeped me using Konfab... one more to go, and i unistall Konfab for ever. Thanks!!

#328448

@killaart: try right clicking and "save as"

#328449

Whats that last one to go? And nice desklet.. You should upload it to avedesk.philc.ca

#328451

great desklet.... often useful

#328452

I dig it totally, especially the small detail that when you select "time" you get a working clock :D.

Some small things/bugs I noticed:

  • it seems to suffer from rounding errors a bit, eg. 10meter/sec = 35,999969 km/h Not a biggy, just something I noticed.
  • My local uses a comma as a decimal seperator - it seems to be hardwired to a dot.
  • scaling the desklet up or down doesn't work with the coordinates, I have a solution for this below :)

If you want to rework this with the AveDesk 1.3 SDK (gonna post it tomorrow, need to finish some small docs) you get:

- events per layer with autoscaling coordinates

- the ability to use AveControl's comboboxes and editboxes, which might make things easier. For example, the editbox has text-selection, works exactly like the windows equivalent, copy/paste etc..

- you could add a backside with a setting for the number of significant decimals

:)

#328459

very nice, love the interface. i was using some 3rd party unit convertor and it dosnt look anywhere near as good as this desklet. thanks a bunch!

#328474

That is so fantastically cool! I hope you'll convert it to avedesk 1.3 :) Fantastic job! (man I use the word fantastic a lot)

#328517

I am so glad that you like it.

for your comments,

dreadnaut: Sorry for that. Frankly, all the units are from Konfab's counterpart.

musashisama: what to go ?

AndreasV: It would be really great to have flippy thing on it. (I needed to be patient for couple of days.)

Coordinate thing is fixed in the new release.

About comma, the new version accepts comma as decimal point but it appears as decimal point (for scanf thing).

In term of round off error, i used double instead of float but still having problem.

I spended couple of hours moew and a new version is released in another thread, please take a look at.

#328598

Hint about locale and rounding issues:

If you allow the input string to be unicode (BSTR), you can use the VarR8FromStr or even better VarDecFromStr functions exposed from Oleaut32.dll. VarParseNumFromStr will allow you to parse all kinds of numerics. If you want to manage from and to conversions in a tabular way, consider using VarTokenizeFormatString. Once you have set up your app with a (list of) token list(s) you'll only need to call VarFormatFromTokens and this is IMHO the best way to go.

Currency rounding is available by VarCyRound after a VarCyFromStr, also from there.

hth,

herd

#328620

musashisama: what to go ?

The last widget that keeps me using Konfab is the amazing Dashboard Weather from SioSae... smooth sliding, smooth flipping, moon fases, color changing, an amazing widget.

But, that should change soon as an amazing desklet that i´ve seen on a video be released. So... Konfab clock is ticking it's last seconds on my desktop. Long live for AveDesk!!

#328638

dreadnaut: Sorry for that. Frankly, all the units are from Konfab's counterpart.

hehhehe I am sorry I made you worry about that: it was some kind of drinking joke, since the US pint is smaller than the UK unit :P

wonderful desklet !

#328641

herd: I'll see the manual: to be honest, I am ignorant for such new (?) functions. I will try them!

dreadnaut: No, no. You brought me a nice idea. I thought that no one wants to change unit conversion equation, but you do and I admitted that! Now, it is configurable so you can add any units you want. Thanks for the good comment!

musashisama: Yep! that's not the one I should develop as the next project: I've seen Ave Scripter's weather widget rocks !

#328652

Nice one!There should be more dashboard widgets that are ported to ave desk in the world! :)

#328718