add choiche to contextual menu

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jagiron
Posts: 19
Joined: Mon Feb 20, 2012 12:47 am

add choiche to contextual menu

Post by jagiron » Fri Mar 23, 2012 6:16 pm

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"

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: add choiche to contextual menu

Post by Klaus » Fri Mar 23, 2012 6:38 pm

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

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: add choiche to contextual menu

Post by monte » Fri Mar 23, 2012 9:32 pm

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
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: add choiche to contextual menu

Post by Klaus » Sat Mar 24, 2012 5:21 pm

Oh, looks like I misunderstood the question... 8)

Post Reply