button ICON

Bob Sneidar bobsneidar at iotecdigital.com
Mon Apr 22 12:00:57 EDT 2019


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 <use-livecode at lists.runrev.com> wrote:
> 
> Hi Bob,
> 
>> Am 22.04.2019 um 17:10 schrieb Bob Sneidar via use-livecode <use-livecode at lists.runrev.com>:
>> 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 graphics *seem* to display fine. Until you quit livecode then open the target project by itself. No graphics! 
>> ...
>> on newBackground
>> ...
>> end newBackground
> 
> thanks, but that is not I was looking (or asking) for.
> 
>>> On Apr 20, 2019, at 09:36 , Klaus major-k via use-livecode <use-livecode at lists.runrev.com> 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 dreaming? :-)
> 
> I obviously mixed this somehow with IMAGESOURCE where we can actually:
> ...
> set the imagesource of char 1 of fld 1 to "binfile:path/on disk/to your/image.jpg"
> ...
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> http://www.major-k.de
> klaus at major-k.de





More information about the Use-livecode mailing list