开发者

Menuhandler for REALbasic ListBox.ActiveCell

I have a Listbox where all cells are editable.

While the user is typing text in the ActiveCell (Textfield) she may decide to paste text.

I would like to examine the paste-text and perform different paste 开发者_如何学运维operations depending on whether it is multiline or not.

Is there any way to create an EditPaste MenuHandler specifically for ListBox1.ActiveCell?


You should be able to use the keyboard async command and intercept the paste command in the Listbox.CellKeyDown event. Then take a look at the clipboard object to see what text it has in it.

Kind of a kludge, but I can't think of any other way to do it since the ActiveCell handles cut/copy/paste on its own without intervention.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜