ANOTHER FLAG FOR THE EXPLORERLISTGADGET

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

ANOTHER FLAG FOR THE EXPLORERLISTGADGET

Post 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.

I am to provide the public with beneficial shocks.
Alfred Hitshock
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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
quidquid Latine dictum sit altum videtur
Post Reply