Page 1 of 1

ANOTHER FLAG FOR THE EXPLORERLISTGADGET

Posted: Wed Sep 17, 2003 12:06 am
by fsw
@Freak or Fred:

Using the ExplorerListGadget is really nice, but it lacks of displaying the right file size if the size is smaller than 1024bytes.
The file size shown = 0KB instead of 86bytes (example)

It would be nice to get a flag to set the size as bytes or incorporate something in a SetGadgetState command.

Well, don't know if it's possible, but having always a correct file size is a nice thing to have :wink:

Thanks for your time.

Posted: Wed Sep 17, 2003 6:19 pm
by freak
Hum, what's the point of writing this in capital letters?

Anyway, this behaviour is not hard to change, the question is, what way
would be the best?

I actually choose this KB only way, because it is what Windows Explorer
does. (well, and since it is named ExplorerGadget... :wink: )
However, I just noticed, that Explorer rounds up to 1KB if the size is
below that, so no 0 files are displayed.

I don't like to add another Flag for a little thing like this. I'd rather make
the routine intelligent to choose the right way of displaying (Byte, KB, MB, GB), depending on the filesize.

But I'm always open for suggestions, so what do you think?
Does anybody have a better/different idea for this?

Timo