Set the icon to (icon of another stack)--YES!
Rob Cozens
rcozens at pon.net
Thu Jan 5 16:11:52 EST 2006
>>
if currentLibrary is imagePath2 then
stop using stack imagePath2
close stack imagePath2
lock messages -- [?]
open stack imagePath1 -- &/or start using ?
unlock messages
-- don't change currentLibrary, so the next call will toggle
[may cause problems in line 1 & 2 above]
end if
<<
actually needs to be at the end of the refreshButtons handler to work
correctly.
Another means of changing icons en mass would be to set button
profiles with the appropriate icons. The downsides of this are (1)
profiles -- at least for moi -- are prone to error if you don't know
what you are doing (eg: changing a property which has not been
identified in the current profile establishes identifies that
property in the master profile), and (2) this keeps both sets of
icons in RAM at all times.
Rob Cozens, CCW
Serendipity Software Company
Vive R Revolution!
More information about the use-livecode
mailing list