specifying an iconType

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

nishok
Posts: 3
Joined: Mon Apr 02, 2012 5:24 pm

Re: specifying an iconType

Post by nishok » Sun Feb 17, 2013 1:09 am

Thanks Klaus, your reply had me have another go at this. One thing I forgot to mention before is that I'm running under OSX Mountain Lion.

Anyway, I now have gRevAppIcon working. I'm setting the variable in my openStack. As well as importing the jpgs through an Image Area, I'm also listing them in the Copy Files page of the standalone settings. I didn't read that anywhere (perhaps I missed it!) but I thought I'd try it. Seems to be crucial. I'm having this thought that its something to do with sandboxing but I don't know.

gRevSmallAppIcon isn't working. Would you still expect it to on Mountain Lion? Or has that way of presenting a message been changed? I'm trying to think of an app I could run to test that out by seeing what message the app gives me. Preferably an apple app. Can't think of one that does messages...

Thanks, Nishok

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: specifying an iconType

Post by Klaus » Sun Feb 17, 2013 11:56 am

Hi nishok,
nishok wrote:Thanks Klaus, your reply had me have another go at this. One thing I forgot to mention before is that I'm running under OSX Mountain Lion.
Well, I am on ML!
nishok wrote:Anyway, I now have gRevAppIcon working. I'm setting the variable in my openStack. As well as importing the jpgs through an Image Area, I'm also listing them in the Copy Files page of the standalone settings. I didn't read that anywhere (perhaps I missed it!) but I thought I'd try it. Seems to be crucial. I'm having this thought that its something to do with sandboxing but I don't know.
### As well as importing the jpgs through an Image Area
??? Sorry, don't get this.
An image file on disk is not neccessary, after you "imported" an image!
And the gRevIcon thing is an internal Livecode thing and does have nothing to do with "Sandboxing" :D

Create a new stack with only these two images yiou use for gRevIcons and try it.
I am sure it will work, so there may be another issue on your side, but I can only guess...


Best

Klaus

nishok
Posts: 3
Joined: Mon Apr 02, 2012 5:24 pm

Re: specifying an iconType

Post by nishok » Sun Feb 17, 2013 4:23 pm

Hi Klaus
### As well as importing the jpgs through an Image Area
??? Sorry, don't get this.
...I meant, I dragged an image area from the tools palette onto my stack, clicked on the folder pic after the Source field and chose my jpg file.
An image file on disk is not neccessary, after you "imported" an image!
And the gRevIcon thing is an internal Livecode thing and does have nothing to do with "Sandboxing" :D
Yup, see that now.
Create a new stack with only these two images yiou use for gRevIcons and try it.
I am sure it will work, so there may be another issue on your side, but I can only guess...
Done that. No need for copy files or anything so that was a red herring. But the standalone still only displays an icon for an answer command with no iconType. Answers with information, error etc as the iconType just show the standard error, info etc icon not badged by my gRevSmallAppIcon. Here's my little livecode test file as per your suggestion...
Answer Icon Test.livecode.zip
(1.72 KiB) Downloaded 173 times
Thanks, Nishok

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: specifying an iconType

Post by Klaus » Sun Feb 17, 2013 4:41 pm

Hi Nishok,

well you REFERENCED these images, so these files:
/Users/ishok/Shoxville/SYC/newsletter/typoMaster ƒ/icons stuff/Lorem4at64.jpg
/Users/ishok/Shoxville/SYC/newsletter/typoMaster ƒ/icons stuff/Lorem4at32.jpg
are not available in a standalone and e.g. on MY harddisk! 8)

Import(!) them and all should be fine!


Best

Klaus

Post Reply