Thank you Mark.
Michael.
On Nov 23, 2006, at 12:39 AM, Marc Zeedar wrote:
On Thu, November 23, 2006 3:47 am, Michael wrote:
I wish my Listbox not to be able to accept copy, paste, and delete.
I recently ran into this problem: just make a custom listbox class
with
cut/copy/paste disabled.
Step 1: Add a new Class to your project.
Step 2: Give it a Super of ListBox. (You can also rename it, i.e.
LBNoCopyClass.)
Step 3: Within the Class, add Cut/Copy/Paste menu handlers (if they
aren't
there) and add Return True line of code in each of them.
Step 4: Set the original listbox of your project to this custom
listbox
(whatever you named in in step 2).
That should do it. Returning True to the menu handler tells RB that
you've
handled the menu so it won't do its thing. You can export this
listbox and
reuse it other projects if this is something you run into
periodically.
--
Marc Zeedar
Publisher
REALbasic Developer Magazine
http://www.rbdeveloper.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>