Edit Menu
Joe Lewis Wilkins
pepetoo at Cox.Net
Sun Mar 25 20:35:43 EDT 2007
Hi Sarah,
Thanks a lot. Seems they could carry the Auto-script a little bit
further, but to a certain extent I suppose they have (kind of)!
Joe Wilkins
On Mar 25, 2007, at 4:34 PM, Sarah Reichelt wrote:
> On 3/26/07, Joe Lewis Wilkins <pepetoo at cox.net> wrote:
>> Do we have to implement each of the items in the Edit Menu? I thought
>> basic text editing was automatic with the enabling of the Edit
>> Menu. No?
>
> When you make a menu using the Menu Builder, it includes an Edit menu
> with the default items (Cut, Copy, Paste etc). If you then use
> "Auto-script", you get the shell for the menuPick handler but it does
> not include the actual commands.
>
> I have a standard Edit menu script that I put into the script of any
> Edit menu. Here it is if you would like to use/modify it.
>
> Cheers,
> Sarah
>
>
> on menuPick pWhich
> switch pWhich
> case "Undo"
> undo
> break
> case "Cut"
> cut
> break
> case "Copy"
> copy
> break
> case "Paste"
> paste
> break
> case "Clear"
> put empty into the selection
> break
> case "Select All"
> put the focusedObject into tID
> if tID contains "field" then
> select text in tID
> end if
> break
> case "Preferences..."
> case "Preferences"
> go to stack "Prefs"
> break
> end switch
> end menuPick
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list