realbasic-nug
[Top] [All Lists]

Re: Cut/Copy/Paste/Clear in Editable Listbox Cells

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Cut/Copy/Paste/Clear in Editable Listbox Cells
From: Owen Yamauchi <owen dot yamauchi at chello dot be>
Date: Mon, 31 Mar 2003 19:48:42 +0200
On Monday, Mar 31, 2003, at 19:36 Europe/Brussels, Will Leshner wrote:

At least in 4.5, the trick is that the window gets the event, not the listbox. So you have to make EditCopy, EditCut, EditPaste, and EditClear menu handlers in you Window. And you'll have to have some way to know that there is a cell is being edited in the listbox.

Keep a global property like "pSelected as Boolean". Then set it to true in the ListBox's CellGotFocus event, and false in the CellLostFocus event.

Regards,

--
Owen Yamauchi
Domain Softworx
Quality shareware for the Mac
http://connect.to/domainsoftworx/


---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>

Subscribe to the digest: <mailto:realbasic-nug-digest at lists dot realsoftware dot com>
.


<Prev in Thread] Current Thread [Next in Thread>
  • Re: Cut/Copy/Paste/Clear in Editable Listbox Cells, Owen Yamauchi <=