Control Ids & Ordinals of Cloned Stacks

Sarah sarahr at genesearch.com.au
Tue Dec 2 16:46:27 EST 2003


> I reference menu buttons by id rather than name to support application 
> translatability.  I have had to change the references from "button id 
> [the id]" to "button [ordinal] of group "myMenubar" in stacks that can 
> be cloned (plain "button [ordinal]" also resolves to different 
> controls in the original & cloned stacks).
>
> It seems to me that, ideally, a cloned stack should be identical to 
> the stack from which it was cloned.  If you are expecting this 
> behavior, be aware it isn't always so.

Thanks for the warning Rob, but as far as translatability goes, don't 
forget the label property for buttons. You can have button (or menu) 
NAME constant and just change the LABEL to convert to a different 
language.

Cheers,
Sarah
sarahr at genesearch.com.au
http://www.troz.net/Rev/



More information about the use-livecode mailing list