Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Non-editable, but copy/pastable text?

Non-editable, but copy/pastable text?
Thread Tools
Dedicated MacNNer
Join Date: Apr 2001
Location: Columbia, MD
Status: Offline
Reply With Quote
Dec 5, 2001, 08:44 PM
 
I using interface builder to make my main window. The program I am writing is in Carbon.

Is there a type of text-box, or some combination of settings that allows me to output text to the window, that the user CAN copy to the clipboard, but CAN NOT be edited?
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Dec 5, 2001, 09:24 PM
 
As far as I'm aware, there's nothing like that out there for Carbon. With Cocoa, you could do some work with subclassing to get what you're after, but I don't think there's anything like that for Carbon.

However, you could achieve basically the same effect by disabling editing for the textbox, and then providing a "Copy" button which puts the textbox's current contents onto the Clipboard. Have you considered trying that approach?
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Dedicated MacNNer
Join Date: Apr 2001
Location: Columbia, MD
Status: Offline
Reply With Quote
Dec 6, 2001, 05:26 AM
 
I had recalled some sort of manual control like that, but I have not used it before. I'll have to consider that.
Thanks.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:59 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2