Contextual (popup) menus and their options

Mark Stuart mfstuart at cox.net
Sun Aug 24 16:56:39 EDT 2008


Hi All,

 

I have a contextual menu (popup) on a text field with several options. One
of them is Select All.

This allows the user to select all the text in this field.

If the user actuates the contextual menu again, the Select All option should
still be there, but also a new option is selectable - Copy - copies all
selected text to the clipboard.

 

So the question is, how do I detect if text is selected in a text field, and
then dynamically "change out" the menu option by adding "Copy" to it?

 

Regards,

Mark Stuart




More information about the use-livecode mailing list