Button Icon IDs

Peter Haworth pete at lcsql.com
Fri Oct 24 17:56:14 EDT 2014


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 <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>

On Fri, Oct 24, 2014 at 1:32 PM, J. Landman Gay <jacque at hyperactivesw.com>
wrote:

> 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 card of course).
>>
>> I want to set the height and width of the button to the height and width
>> of
>> its icon image.  Is there any way to find the location of the icon image
>> from its ID?
>>
>
> If it's in the same stack, you should be able to:
>
>   get the long name of control id x
>
> But if it's in another stack then you need to reference the stack it's in:
>
>   get the long name of control id x of stack y
>
> --
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list