Hi Ronen.

First of all, editable and selectable text fields will provide this context menu which work with the OS cut/copy/paste facilities. AFAIK there is no way to disable this menu or conditionally disable options on it.

The latest nightly build has LzBrowser.setClipboard() implemented if you'd like to give it a go. Unfortunately, there's no getClipboard() for security reasons. Let me know how it goes!

Regards,
Max Carlson
OpenLaszlo

Ronen Mizrahi wrote:
Hi,

I would like to create an application with a standard Edit menu that has the cut/copy/paste/delete options. It seems like ctrl-c/v/x and the del key work fine on text fields but I did not find any way to manipulate the clipboard programatically (I did find an LzBrowser.setClipboard() proposed in the accessibility API but it seems to be still at the proposal phase. It also seems impossible to enable and disable these menu options based on the availability of text in the clipboard and on the existence of a text field in focus (or actually a text field that was in focus before the menu was opened and gained focus). Is there anyway to do that? Is supporting this planned for the future? Also, the contacts demo application that comes with the open laszlo distribution has an edit menu with copy and paste options but looking in the source files these options seem to simply be disabled and have no functionality behind them, am I missing anything?

Thank you in advance,

Ronen
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to