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

button ICON

2019-04-20 Thread Klaus major-k via use-livecode
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 dreaming? :-) Thanks for any hints. Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de __

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

Button Icon IDs

2014-10-24 Thread Peter Haworth
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 card of course). I want to set the height and

Re: Trouble with button icon images

2011-12-27 Thread J. Landman Gay
On 12/27/11 5:03 PM, Pete wrote: Hi Jacque, I tried this out. The standalone has a substack named "revCopiedIcons". I added code to list the controls in that stack and it contained the standard icons for the answer command (information, error, warning, etc) plus the one icon I referenced in the

Re: Trouble with button icon images

2011-12-27 Thread Pete
Hi Jacque, I tried this out. The standalone has a substack named "revCopiedIcons". I added code to list the controls in that stack and it contained the standard icons for the answer command (information, error, warning, etc) plus the one icon I referenced in the Image library. So it appears the

Re: Trouble with button icon images

2011-12-26 Thread J. Landman Gay
On 12/26/11 11:35 AM, Pete wrote: HI Jacque, Just one more follow up to this. When the standalone is built, does it include all the images in the library or just the ones that are referenced in the application? The library I created has around 700 icons in it and I only use perhaps a dozen or s

Re: Trouble with button icon images

2011-12-26 Thread Pete
HI Jacque, Just one more follow up to this. When the standalone is built, does it include all the images in the library or just the ones that are referenced in the application? The library I created has around 700 icons in it and I only use perhaps a dozen or so in any one application. Thank, On

Re: Trouble with button icon images

2011-12-24 Thread Pete
Great, thanks. On Sat, Dec 24, 2011 at 10:02 AM, J. Landman Gay wrote: > On 12/24/11 11:56 AM, Pete wrote: > >> Thanks Jacque. When I use the library, I use the Place Reference button >> to >> put a button on whatever card I'm working on, preconfigured to refer to >> the >> image as its icon. A

Re: Trouble with button icon images

2011-12-24 Thread J. Landman Gay
On 12/24/11 11:56 AM, Pete wrote: Thanks Jacque. When I use the library, I use the Place Reference button to put a button on whatever card I'm working on, preconfigured to refer to the image as its icon. Are you saying that those images won't show up when I build a standalone? No, they'll sho

Re: Trouble with button icon images

2011-12-24 Thread Pete
Thanks Jacque. When I use the library, I use the Place Reference button to put a button on whatever card I'm working on, preconfigured to refer to the image as its icon. Are you saying that those images won't show up when I build a standalone? Thanks, Pete On Sat, Dec 24, 2011 at 9:22 AM, J. Lan

Re: Trouble with button icon images

2011-12-24 Thread J. Landman Gay
On 12/24/11 10:45 AM, Pete wrote: Hi Mark, Changing the ID fixes the problem, thanks. What might be the cause of this? ID conflicts. Each stack can have its own ID numbering, so another control somewhere may have had the same ID. If the image with the conflicting ID is large or has transpare

Re: Trouble with button icon images

2011-12-24 Thread Pete
Hi Mark, Changing the ID fixes the problem, thanks. What might be the cause of this? On a related topic, I'm wondering what are the advantages/disadvantages of using the Image Library versus putting the application's images in a substack. I used to import my images into the Image Library and ref

Re: Trouble with button icon images

2011-12-24 Thread Mark Schonewille
Hi Pete, What happens if you change the id of the image? -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 23 dec. 2011 om 20:30 heeft Pete het v

Re: Trouble with button icon images

2011-12-23 Thread Bob Sneidar
The only way I have gotten this to work reliably is to make sure that the images needed for buttons in a particular stack are IN that stack, not the mainstack, not a substack, but the stack that actually needs them. I suppose you could put them all in the mainStack, so long as the mainStack was

Trouble with button icon images

2011-12-23 Thread Pete
I have a card in a substack of my mainstack that contains images for buttons I use in other substacks. All seems to work fine so far but I have a problem with one button whose image does not show up. The same image is used as the icon for buttons on other cards and shows up just fine. If I copy

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Keith Clarke
I tried 'import' first purely because I wanted to bring the snapshot of the unopened card into the 'home' card rather than export to file, etc. There are some notes in the dictionary about setting the absolute rectangle coordinates depending on the target object - it didn't work until I defined

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread J. Landman Gay
On 4/1/11 1:42 PM, J. Landman Gay wrote: On 4/1/11 1:05 PM, Richard Gaskin wrote: Jacque wrote: While you can take snapshots of objects that aren't open, you can't take them of cards that aren't open. Cards are not objects. I was unable to get a snapshot of another card unless I went there firs

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Richard Gaskin
Jacque - I see Keith is using "import snapshot" and specifying a card. That isn't in the docs and I always got an error when I tried to specify an object with "import", I could only specify one with "export". Ah, that may be it. I almost never use "import", using "export" instead. If one suppo

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread J. Landman Gay
On 4/1/11 1:05 PM, Richard Gaskin wrote: Jacque wrote: While you can take snapshots of objects that aren't open, you can't take them of cards that aren't open. Cards are not objects. I was unable to get a snapshot of another card unless I went there first. I didn't know I couldn't do that so I

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Bob Sneidar
I wonder if this is because export snapshot puts the stack in memory, along with the first card in the stack? Try it with the second card. Bob On Apr 1, 2011, at 11:05 AM, Richard Gaskin wrote: > Jacque wrote: >> While you can take snapshots of objects that aren't open, you can't take >> them

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Richard Gaskin
Jacque wrote: While you can take snapshots of objects that aren't open, you can't take them of cards that aren't open. Cards are not objects. I was unable to get a snapshot of another card unless I went there first. I didn't know I couldn't do that so I tried it a long time ago and it seemed t

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Bob Sneidar
Welcome to the New World sir! Bob On Apr 1, 2011, at 10:30 AM, Keith Clarke wrote: > In my case, PowerPoint was my 'IDE for non-functioning wish-list-ware' for a > couple of decades . > Best, > Keith.. ___ use-livecode mailing list use-livecode@li

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Keith Clarke
Hi Jaque, Thanks for responding. This is what I ended up with for updating a single button. I'm quite pleased with the result, because, as there are 'moving parts' on the visited cards, when I return to the home screen it is updated with thumbnails reflecting the current 'just left' view of the

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Bob Sneidar
That's worth saving in my Livecode Keepers! Someday I am going to make a stack of this stuff! Bob On Apr 1, 2011, at 10:09 AM, J. Landman Gay wrote: > On 4/1/11 11:14 AM, J. Landman Gay wrote: >> >> Since you are taking snapshots of other cards and the "preopen" is for >> the control, I'm not

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread J. Landman Gay
On 4/1/11 11:14 AM, J. Landman Gay wrote: Since you are taking snapshots of other cards and the "preopen" is for the control, I'm not sure you need to wait for the control to load. I think the issue is the ID of the icon. I just tried the handler you posted and there's more wrong than just th

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread J. Landman Gay
On 4/1/11 6:31 AM, Keith Clarke wrote: Thanks Mark - that's clear. I'll move my script onto the card, use 'openCard' as its base and provide something to distract the viewer whilst the thumbnails update! Best, Keith.. It still won't work unless you use the ID of the snapshot image rather than

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Keith Clarke
Thanks Mark - that's clear. I'll move my script onto the card, use 'openCard' as its base and provide something to distract the viewer whilst the thumbnails update! Best, Keith.. On 1 Apr 2011, at 11:49, Mark Schonewille wrote: > Keith, > > On preOpen... the control or card isn't open yet and

Re: Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Mark Schonewille
Keith, On preOpen... the control or card isn't open yet and you can't get a screenshot of it yet. A stacks or card needs to load completely before you can do such things. A very clear example is e.g. the impossibility to get the dimensions of a player if the movie of that player is being loaded

Creating an auto-updating button icon thumbnail image from card snapshot

2011-04-01 Thread Keith Clarke
Hi folks, I'm working on a presentation stack, which has a home card with a set of buttons with thumbnail images (as the icon) that navigate to other cards in the stack. The other cards are evolving, so I'm trying to create an auto-update script to renew the navigation button thumbnail icon imag