Page 1 of 1

add choiche to contextual menu

Posted: Fri Mar 23, 2012 6:16 pm
by jagiron
its posible to add command to the contextual menu? i mean when you select something is posible to add to the menu "select, copy, paste" something like "send to twitter"

Re: add choiche to contextual menu

Posted: Fri Mar 23, 2012 6:38 pm
by Klaus
Hi jagiron,

since a contextual menu is just a button, you can modify its TEXT property:
...
## Append:
put the text of btn "your popup here..." into tText
put CR & "send to twitter" after tText
set the text of btn "your popup here..." to tText
...
BUT this does not create the appropriate menupick handler for the new command in the script of the button of course 8)


Best

Klaus

Re: add choiche to contextual menu

Posted: Fri Mar 23, 2012 9:32 pm
by monte
Do you mean in the uitextfield then no. It would involve subclassing in an external. I have nearly completed an external that can present one of those popup menus though with whatever button titles you like. See the help me name this external topic for more details.

Cheers

Monte

Re: add choiche to contextual menu

Posted: Sat Mar 24, 2012 5:21 pm
by Klaus
Oh, looks like I misunderstood the question... 8)