File types and associated icons?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 348
Joined: Sun Jul 03, 2011 2:04 am

File types and associated icons?

Post 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
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: File types and associated icons?

Post 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
keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 348
Joined: Sun Jul 03, 2011 2:04 am

Re: File types and associated icons?

Post by keithglong »

Thanks Bernd.
Post Reply