Page 1 of 1

File types and associated icons?

Posted: Thu Nov 17, 2011 11:49 pm
by keithglong
Hello All,

Please excuse my ignorance, but is there a way to put a list of files into a data grid in a way to include the default icon for each file type? For example, if I put a list of files from a directory into a data grid, is there a way to include a .pdf icon for each .pdf file, a text icon for each text file, an image icon for each image file, etc. I can manually place my own icons (using my own images/icons), but I want to access the file type icons found on each user’s system dynamically... Some users will have different icons... I want each user to be able to identify her/his files accordingly...

Thanks!

- Boo

Re: File types and associated icons?

Posted: Fri Nov 18, 2011 12:09 am
by bn
Hi Keith,

I think this is a little involved since I don't know of a way to access the file type icons natively from Livecode.

For MaxOSX I made a stack that uses a shell script and can retrieve the icons of all programs of the machine. But you would still have to find a way to associate that with a users files.

have a look at this thread

http://forums.runrev.com/phpBB2/viewtop ... ons#p36360

Kind regards

Bernd

Re: File types and associated icons?

Posted: Fri Nov 18, 2011 12:14 am
by keithglong
Thanks Bernd.