Re: button ICON

2019-04-22 Thread Stephen Barncard via use-livecode
.. or is that what is new in V9x? -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Mon, Apr 22, 2019 at 11:11 AM Stephen Barncard wrote: > and there can't be a 'name' of a graphic? That would solve the problems! > I thought I tried this once and it worked. > sqb > -- > Stephen Barnc

Re: button ICON

2019-04-22 Thread Stephen Barncard via use-livecode
and there can't be a 'name' of a graphic? That would solve the problems! I thought I tried this once and it worked. sqb -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Mon, Apr 22, 2019 at 9:59 AM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > As an added tec

Re: button ICON

2019-04-22 Thread Bob Sneidar via use-livecode
As an added technique, if you have a single folder containing all your images, and your buttons already point to the image file for reference, you can "skin" your applications by simply swapping out the image folder with a different set of images with the same names, then reloading your stack.

Re: button ICON

2019-04-22 Thread Phil Davis via use-livecode
Thanks hh - I concur. Your approach seems cleaner. Phil On 4/22/19 9:20 AM, hh via use-livecode wrote: As Phil said, but don't set the text of the (empty) image used as icon of the button but set the filename of the image. The icon will change accordingly. ___

Re: button ICON

2019-04-22 Thread hh via use-livecode
As Phil said, but don't set the text of the (empty) image used as icon of the button but set the filename of the image. The icon will change accordingly. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, un

Re: button ICON

2019-04-22 Thread Phil Davis via use-livecode
Hi Klaus, The only method I can think of is where you set the icon of a button to the id of an image object, and then set the text of that image object to the binfile url of different image files. That does work, but may not be what you're looking for. Best - Phil Davis On 4/20/19 9:36 AM,

Re: button ICON

2019-04-22 Thread Klaus major-k via use-livecode
Hi Bob, > Am 22.04.2019 um 18:00 schrieb Bob Sneidar via use-livecode > : > > I was responding to Tom Glod's question, "why do u need to use images without > loading them into the stack?" oh, sorry, that was not obvious. > This technique can be used to make buttons with graphics portable, whi

Re: button ICON

2019-04-22 Thread Bob Sneidar via use-livecode
I was responding to Tom Glod's question, "why do u need to use images without loading them into the stack?" This technique can be used to make buttons with graphics portable, which is the root of the question. Bob S > On Apr 22, 2019, at 08:30 , Klaus major-k via use-livecode > wrote: > > H

Re: button ICON

2019-04-22 Thread Klaus major-k via use-livecode
Hi Bob, > Am 22.04.2019 um 17:10 schrieb Bob Sneidar via use-livecode > : > I guess this goes way back to a long standing conversation as to the way > buttons with graphics work in the first place. Let's say you have a group > with several buttons. You now want to copy it to another project. Si

Re: button ICON

2019-04-22 Thread Bob Sneidar via use-livecode
I guess this goes way back to a long standing conversation as to the way buttons with graphics work in the first place. Let's say you have a group with several buttons. You now want to copy it to another project. Since the graphics are ALREADY OPEN in the project you copied from the button graph

Re: button ICON

2019-04-21 Thread Tom Glod via use-livecode
Klaus, I vaguely remember someone recently pointing out a weird trick with button icons .. but i think it had to do with svgs being used as button icons. but maybe it really was a dream. why do u need to use images without loading them into the stack? On Sun, Apr 21, 2019 at 4:08 PM Kla

Re: button ICON

2019-04-21 Thread Klaus major-k via use-livecode
Hi Jaques, > Am 21.04.2019 um 21:44 schrieb J. Landman Gay via use-livecode > : > > I had a dream like that once too, but I don't know of any way you can do that > in real life. hehe, got it, thank you! :-) > > On 4/20/19 11:36 AM, Klaus major-k via use-livecode wrote: >> Hi friends, >> I hav

Re: button ICON

2019-04-21 Thread J. Landman Gay via use-livecode
I had a dream like that once too, but I don't know of any way you can do that in real life. On 4/20/19 11:36 AM, Klaus major-k via use-livecode wrote: Hi friends, I have a vague memory that we can use images as icons in buttons WITHOUT putting them in an image object first. Am I right or was I

Re: Button Icon IDs

2014-10-24 Thread J. Landman Gay
It's a very cool answer too, somehow I missed that in the docs. So we both learned something. On October 24, 2014 4:56:14 PM CDT, Peter Haworth wrote: >Hi Jacque, >Unfortunately, all I have is the button's icon ID so I don;t know where >the >the image is. But it sounds like Monte has the answ

Re: Button Icon IDs

2014-10-24 Thread Peter Haworth
I had been playing around with other ways to do this until I got this solution and came across what may be a bug. After setting the icon of the button, I set the height and width of the button to its formattedHeight and formattedWidth. Sometimes that worked correctly and sometimes it didn't. I h

Re: Button Icon IDs

2014-10-24 Thread Peter Haworth
Hi Jacque, Unfortunately, all I have is the button's icon ID so I don;t know where the the image is. But it sounds like Monte has the answer. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin

Re: Button Icon IDs

2014-10-24 Thread Peter Haworth
Excellent, thanks Monte. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Oct 24, 2014 at 1:12 PM, Monte Goulding wrote: > Use the resolve command. I implemented this to d

Re: Button Icon IDs

2014-10-24 Thread Monte Goulding
Use the resolve command. I implemented this to do exactly what you want: get the long id of the image that is used on an icon on a given button. You have to specify the button because that's what the icon is resolved relative to. It uses the same code the engine does to find the icon btw. Cheer

Re: Button Icon IDs

2014-10-24 Thread J. Landman Gay
On 10/24/2014, 12:22 PM, Peter Haworth wrote: When setting the icon of a button, there is a hierarchy of locations that LC uses to find the image. However, if I subsequently try to reference the image id in a script, LC won't find it unless I fully qualify where it is (unless it's on the current